File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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' ]]
You can’t perform that action at this time.
0 commit comments