Skip to content

Commit

Permalink
Issue steemit#13 - use head_block - 3 as reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pharesim authored Jun 23, 2017
1 parent d110d3b commit e4306a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion steembase/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def get_block_params(steem):
"""
props = steem.get_dynamic_global_properties()
ref_block_num = props["head_block_number"] - 3 & 0xFFFF
ref_block = ws.get_block(props["head_block_number"] - 2)
ref_block = steem.get_block(props["head_block_number"] - 2)
ref_block_prefix = struct.unpack_from("<I", unhexlify(ref_block["previous"]), 4)[0]
return ref_block_num, ref_block_prefix

Expand Down

0 comments on commit e4306a7

Please sign in to comment.