Skip to content

Commit

Permalink
Splice: Stricter interop errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ddustin committed Jan 23, 2025
1 parent 6a194f2 commit 4eeb5df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions common/interactivetx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4eeb5df

Please sign in to comment.