tests: augment test_onchain_their_unilateral_out to check to_remote witness generation

Changelog-Added: added a withdraw all to the end of test_onchain_their_unilateral_out to ensure that the unilateral close info is correct with anchors.  Tests https://github.com/Blockstream/greenlight/issues/348
This commit is contained in:
Ken Sedgwick 2024-01-12 16:27:47 -08:00 committed by Christian Decker
parent c7e5d8049e
commit 33c838212e

View File

@ -2421,6 +2421,9 @@ def test_onchain_their_unilateral_out(node_factory, bitcoind, chainparams, ancho
assert acc['account_resolved']
assert acc['resolved_at_block'] > 0
# Have l1 send all funds to check that the unilateral close info is correct
l1.rpc.withdraw(l1.rpc.newaddr('bech32')['bech32'], 'all', minconf=0)
def test_listfunds_after_their_unilateral(node_factory, bitcoind):
"""We keep spending info around for their unilateral closes.