Do not generate error messages when we receive our own gossip
authorMatt Corallo <git@bluematt.me>
Mon, 21 Jun 2021 17:36:46 +0000 (17:36 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 23 Jun 2021 01:35:26 +0000 (01:35 +0000)
commita146ef2be28d9f4e4daeb8f88797115931824578
treeeaa75deeeb913032d99f1ad3015130c489584a55
parent95f9523097e9ed7535fdbfcd98cf6903d036c0f3
Do not generate error messages when we receive our own gossip

When a peer sends us the routing graph, it may include gossip
messages for our channels, despite it not being a party to them.
This is completely fine, but we currently print a somewhat-scary
looking log messages in these cases, eg:

```
ERROR [lightning::ln::channelmanager:4104] Got a message for a channel from the wrong node!
TRACE [lightning::ln::peer_handler:1267] Handling SendErrorMessage HandleError event in peer_handler for node ... with message Got a message for a channel from the wrong node!
```

Instead, we should simply not consider this an "error" condition
and stay silent.
lightning/src/ln/channelmanager.rs