From 53d9cbb1229d67c6d435975a55f27eff03ac1bbc Mon Sep 17 00:00:00 2001 From: Dusty Daemon Date: Tue, 28 Jul 2026 11:24:15 -0400 Subject: [PATCH] splice: Clean up error message Changelog-None --- channeld/channeld.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/channeld/channeld.c b/channeld/channeld.c index 3848f0d2e837..58ba70d860f6 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -4417,6 +4417,12 @@ static void splice_initiator(struct peer *peer, const u8 *inmsg) type = fromwire_peektype(inmsg); + if (!peer->splicing) { + peer_failed_warn(peer->pps, &peer->channel_id, + "Received %s without an active splice session", + peer_wire_name(type)); + } + if (type == WIRE_SPLICE_ACK) { struct tlv_splice_ack_tlvs *splice_ack_tlvs; if (!fromwire_splice_ack(tmpctx, inmsg,