Skip to content

Commit f1ed25e

Browse files
committed
splice: tx_abort no longer reestablishes
As per eclair implementation we skip `channel_reestablish` and go straight into the channel for `tx_abort` events. Changelog-None
1 parent 4a06096 commit f1ed25e

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

channeld/channeld.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,8 @@ static void splice_abort(struct peer *peer, const char *fmt, ...)
17881788
va_end(ap);
17891789

17901790
if (have_i_signed_inflight(peer, inflight))
1791-
status_failed(STATUS_FAIL_INTERNAL_ERROR,
1792-
"Tried to abort a splice where I have already"
1791+
peer_failed_err(peer->pps, &peer->channel_id,
1792+
"I needed to abort a splice where I have already"
17931793
" sent my signatures");
17941794

17951795
status_info("We are initiating tx_abort for reason: %s", reason);

tests/test_restart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ def test_agressive_restart(node_factory, bitcoind):
1717
for _ in range(20):
1818
l1.rpc.stfu_channels([chan_id])
1919
l1.rpc.abort_channels([chan_id])
20-
l1.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_REESTABLISH')
21-
l2.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_REESTABLISH')
20+
l1.daemon.wait_for_log(r'Restarting channeld after tx_abort')
21+
l2.daemon.wait_for_log(r'Restarting channeld after tx_abort')

tests/test_splicing.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ def test_invalid_splice(node_factory, bitcoind):
230230
assert len(list(mempool.keys())) == 1
231231
assert result['txid'] in list(mempool.keys())
232232

233-
# Wait until nodes are reconnected
234-
l1.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_REESTABLISH')
235-
l2.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_REESTABLISH')
236-
237233
bitcoind.generate_block(6, wait_for_mempool=1)
238234

239235
l2.daemon.wait_for_log(r'CHANNELD_AWAITING_SPLICE to CHANNELD_NORMAL')

tests/test_splicing_disconnect.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,8 @@ def test_splice_disconnect_commit(node_factory, bitcoind, executor):
104104
# Splice should be abandoned via tx_abort
105105

106106
# Wait until nodes are reconnected
107-
l1.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_REESTABLISH')
108-
l2.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_REESTABLISH')
109-
110-
l1.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_READY')
111-
l2.daemon.wait_for_log(r'peer_in WIRE_CHANNEL_READY')
107+
l1.daemon.wait_for_log(r'billboard: Channel ready for use.')
108+
l2.daemon.wait_for_log(r'billboard: Channel ready for use.')
112109

113110
# Check that the splice doesn't generate a unilateral close transaction
114111
time.sleep(5)

0 commit comments

Comments
 (0)