Signal `GossipQuery` support when using `IgnoringMessagHandler`
authorElias Rohrer <dev@tnull.de>
Thu, 21 Mar 2024 07:51:10 +0000 (08:51 +0100)
committerElias Rohrer <dev@tnull.de>
Thu, 21 Mar 2024 08:05:05 +0000 (09:05 +0100)
commit843079df72435b8a117e8b12b42492391409259f
tree375957a487cdebbf75c48704b32fece6cc71b413
parent5e41425179d42b68129e3a4dbf01ad11b0bfa435
Signal `GossipQuery` support when using `IgnoringMessagHandler`

With its v24.02 release CLN made `GossipQueries` a required feature,
leading to a incompatibility between LDK and CLN when using
`IgnoringMessagHandler` as a `RoutingMessageHandler`, which is usually
the case when a node uses RGS.

To fix this issue, we let `IgnoringMessagHandler` signal `GossipQuery`
support, just to go ahead and ignore every gossip message the peer will
send us. While this is nonsensical and still might result in some
unnecessary bandwidth wasted, we have to do something to fix the
incompatibility.
lightning/src/ln/peer_handler.rs