Skip to content

Commit

Permalink
wait after farm_new_transaction_block
Browse files Browse the repository at this point in the history
  • Loading branch information
wjblanke committed May 19, 2021
1 parent 50ff07e commit 18ccda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wallet/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ async def test_wallet_tx_reorg(self, two_wallet_nodes):
await server_3.start_client(PeerInfo(self_hostname, uint16(fn_server._port)), None)
for i in range(0, num_blocks):
await full_node_api.farm_new_transaction_block(FarmNewBlockProtocol(ph))
await time_out_assert(5, wallet_node.wallet_state_manager.blockchain.get_peak_height, 4)
await time_out_assert(5, wallet_node.wallet_state_manager.blockchain.get_peak_height, 5)

funds = sum(
[calculate_pool_reward(uint32(i)) + calculate_base_farmer_reward(uint32(i)) for i in range(1, num_blocks)]
Expand Down

0 comments on commit 18ccda9

Please sign in to comment.