Skip to content

Commit d496126

Browse files
committed
tests: Adjust tests for the lack of unilateral attempt now
1 parent 6c972cd commit d496126

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/test_plugin.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,11 +2059,8 @@ def mock_sendrawtransaction(tx):
20592059
# Restart l2, and it should continue where the watchtower left off:
20602060
l2.start()
20612061

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

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

0 commit comments

Comments
 (0)