splice: Change abort rules to sent sigs

Previous behavior was to fail on abort when we have signatures in the inflight — change this behavior to fail on abort if we have sent our peer our signatures.
This commit is contained in:
Dusty Daemon
2025-06-18 18:51:49 -04:00
committed by Rusty Russell
parent d84d0f70d5
commit dd1e183b8a

View File

@@ -1814,7 +1814,7 @@ static void splice_abort(struct peer *peer, const char *fmt, ...)
reason = tal_vfmt(NULL, fmt, ap);
va_end(ap);
if (have_i_signed_inflight(peer, inflight))
if (inflight && inflight->i_sent_sigs)
peer_failed_err(peer->pps, &peer->channel_id,
"I needed to abort a splice where I have already"
" sent my signatures");