Skip to content

Commit

Permalink
tests: Adjust tests for the lack of unilateral attempt now
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Jul 22, 2024
1 parent f49620f commit 3e88596
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,11 +2059,8 @@ def mock_sendrawtransaction(tx):
# Restart l2, and it should continue where the watchtower left off:
l2.start()

# l2 will still try to broadcast its latest commitment tx, but it'll fail
# since l1 has cheated. All commitments share the same prefix, so look for
# that.
penalty_prefix = tx[:(4 + 1 + 36) * 2] # version, txin_count, first txin in hex
l2.daemon.wait_for_log(r'Expected error broadcasting tx {}'.format(penalty_prefix))
# l2 notices that there has been a unilateral close from l1.
l2.daemon.wait_for_log(r'Peer permanent failure in')

# Now make sure the penalty output ends up in our wallet
fund_txids = [o['txid'] for o in l2.rpc.listfunds()['outputs']]
Expand Down

0 comments on commit 3e88596

Please sign in to comment.