gossipd: Do not send warning when node_announcement parsing fails

Changelog-Fixed: gossip: We removed a warning for old `node_announcement` that was causing LND peers to disconnect
This commit is contained in:
Christian Decker 2023-01-26 15:21:02 +01:00 committed by Alex Myers
parent 7b2c5617c1
commit 13fe27c65f

View file

@ -1848,10 +1848,12 @@ u8 *handle_node_announcement(struct routing_state *rstate, const u8 *node_ann,
* - MAY close the connection.
* - MUST NOT process the message further.
*/
u8 *warn = towire_warningfmt(rstate, NULL,
"Malformed node_announcement %s",
tal_hex(tmpctx, node_ann));
return warn;
/* FIXME: We removed a warning about the
* node_announcement being malformed since the warning
* could cause lnd to disconnect (seems they treat
* channel-unrelated warnings as fatal?).
*/
return NULL;
}
sha256_double(&hash, serialized + 66, tal_count(serialized) - 66);