mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
pytest: YA bitcoind API break.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
53d4e9d2b8
commit
00cbe6959b
@ -462,7 +462,11 @@ def closing_negotiation_step(node_factory, bitcoind, chainparams, opts):
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user