From 8151c037bb37d7315a13c9dee68db9c3b2829c7d Mon Sep 17 00:00:00 2001 From: Dusty Daemon Date: Thu, 23 Jan 2025 14:47:39 -0500 Subject: [PATCH] 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 --- common/interactivetx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/interactivetx.c b/common/interactivetx.c index e19046af7..194063cab 100644 --- a/common/interactivetx.c +++ b/common/interactivetx.c @@ -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 {