Splice: Stricter interop errors

Error when our peer tries to use the shared output txid as well as the prevtx bytes.

Changelog-Changed: Stricter tests for interop with Eclair
This commit is contained in:
Dusty Daemon
2025-01-23 14:47:39 -05:00
committed by Alex Myers
parent a22fe31904
commit 8151c037bb

View File

@@ -493,6 +493,12 @@ char *process_interactivetx_updates(const tal_t *ctx,
" did not set"
" interactivetx"
" funding_tx");
if (tx_bytes)
return tal_fmt(ctx, "Peer used"
" shared_input_txid %s,"
" also included prevtx,"
" only one is allowed.",
fmt_bitcoin_txid(ctx, tlvs->shared_input_txid));
tx = ictx->funding_tx;
}
else {