Skip to content

Commit

Permalink
Revert "[TaPOS] link to the last irreversible block instead of headbl…
Browse files Browse the repository at this point in the history
…ock"

This reverts commit 05cec8e.
  • Loading branch information
xeroc committed Feb 24, 2017
1 parent 28436e3 commit c35c11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphenebase/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def getBlockParams(ws):
witness node!
"""
dynBCParams = ws.get_dynamic_global_properties()
ref_block_num = dynBCParams["last_irreversible_block_num"] & 0xFFFF
ref_block_num = dynBCParams["head_block_number"] & 0xFFFF
ref_block_prefix = struct.unpack_from("<I", unhexlify(dynBCParams["head_block_id"]), 4)[0]
return ref_block_num, ref_block_prefix

Expand Down

0 comments on commit c35c11f

Please sign in to comment.