Skip to content

Commit

Permalink
Fix proposer_balance.py
Browse files Browse the repository at this point in the history
Signed-off-by: Azat Nizametdinov <azat@thirdhash.com>
  • Loading branch information
Nizametdinov committed Apr 5, 2019
1 parent 3116477 commit 4d9830d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/functional/proposer_balance.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def test_empty_blocks_balance(self, created_money, nodes):
coinstake_tx_id = block_info['tx'][0]
coinstake_tx_info = nodes[node_idx].gettransaction(coinstake_tx_id)

created_money += coinstake_tx_info['details'][0]['fee']
# TODO UNIT-E: gettransaction should not return fees for coinbase transactions
# TODO UNIT-E: gettransaction is not a reliable way to get coinbase rewards
created_money += coinstake_tx_info['fee']
assert_equal(
created_money,
nodes[node_idx].gettxoutsetinfo()['total_amount']
Expand Down Expand Up @@ -97,7 +99,7 @@ def test_transaction_blocks_balance(self, created_money, nodes):
]

coinstake_tx_info = transactions[0]
created_money += coinstake_tx_info['details'][0]['fee']
created_money += coinstake_tx_info['fee']

# We want to subtract the fees because are not created money
for tx in transactions[1:]:
Expand Down

0 comments on commit 4d9830d

Please sign in to comment.