splice: Track if splice sigs are sent

Use the new i_sent_sigs field to track if we’ve sent our peer our user sigs.
This commit is contained in:
Dusty Daemon
2025-06-18 18:51:04 -04:00
committed by Rusty Russell
parent a8ff8ce717
commit d84d0f70d5

View File

@@ -3627,6 +3627,7 @@ static void resume_splice_negotiation(struct peer *peer,
psbt_txid(tmpctx, current_psbt, &final_txid, NULL);
inflight->i_sent_sigs = send_signature;
if (do_i_sign_first(peer, current_psbt, our_role,
inflight->force_sign_first)
&& send_signature) {
@@ -3827,7 +3828,7 @@ static void resume_splice_negotiation(struct peer *peer,
wit_stack);
}
if (recv_signature) {
if (recv_signature || send_signature) {
/* We let core validate our peer's signatures are correct. */
msg = towire_channeld_update_inflight(NULL, current_psbt, NULL,
NULL,