Skip to content

Commit 4eeb5df

Browse files
committed
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
1 parent 6a194f2 commit 4eeb5df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

common/interactivetx.c

+6
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,12 @@ char *process_interactivetx_updates(const tal_t *ctx,
493493
" did not set"
494494
" interactivetx"
495495
" funding_tx");
496+
if (tx_bytes)
497+
return tal_fmt(ctx, "Peer used"
498+
" shared_input_txid %s,"
499+
" also included prevtx,"
500+
" only one is allowed.",
501+
fmt_bitcoin_txid(ctx, tlvs->shared_input_txid));
496502
tx = ictx->funding_tx;
497503
}
498504
else {

0 commit comments

Comments
 (0)