From 4eeb5df5ba3fefa48baeef67d123b75d9c026edb 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 1bdab141226e..1e7b8e9df45b 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 {