Skip to content

Commit

Permalink
tests: augment test_onchain_their_unilateral_out to check to_remote w…
Browse files Browse the repository at this point in the history
…itness 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 Blockstream/greenlight#348
  • Loading branch information
ksedgwic authored and cdecker committed Jan 31, 2024
1 parent c7e5d80 commit 33c8382
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_closing.py
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,9 @@ def try_pay():
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.
Expand Down

0 comments on commit 33c8382

Please sign in to comment.