Skip to content

Commit

Permalink
pytest: YA bitcoind API break.
Browse files Browse the repository at this point in the history
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Feb 16, 2022
1 parent 6d256fd commit 51533a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,11 @@ def get_mempool_when_size_1():
wait_for(get_mempool_when_size_1)

close_tx_id = mempool_tx_ids[0]
fee_mempool = round(mempool[close_tx_id]['fee'] * 10**8)
# v22.99.0-8fe6f5a6fbcd at least doesn't have 'fee', it has 'fees'.
if 'fees' in mempool[close_tx_id]:
fee_mempool = round(mempool[close_tx_id]['fees']['base'] * 10**8)
else:
fee_mempool = round(mempool[close_tx_id]['fee'] * 10**8)

assert opts['expected_close_fee'] == fee_mempool

Expand Down

0 comments on commit 51533a1

Please sign in to comment.