mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 06:41:44 +01:00
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:
parent
7b2c5617c1
commit
13fe27c65f
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue