From: Matt Corallo Date: Mon, 12 Sep 2022 15:35:56 +0000 (+0000) Subject: Include the message type when we send unreadable gossip msg errors X-Git-Tag: v0.0.111~3^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c4466bdb95806b401fe3d9792274a40492257902;p=rust-lightning Include the message type when we send unreadable gossip msg errors --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 838927cb2..aae602cfa 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1127,7 +1127,10 @@ impl { log_gossip!(self.logger, "Got an invalid value while deserializing a gossip message"); - self.enqueue_message(peer, &msgs::WarningMessage { channel_id: [0; 32], data: "Unreadable/bogus gossip message".to_owned() }); + self.enqueue_message(peer, &msgs::WarningMessage { + channel_id: [0; 32], + data: format!("Unreadable/bogus gossip message of type {}", ty), + }); continue; } (msgs::DecodeError::UnknownRequiredFeature, ty) => {