mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-05 17:05:50 +02:00
discovery: properly set node's color field when adding NodeAnnouncement to router
In this commit, we fix an existing bug when processing new node announcement. Before this commit, we wouldn’t also copy over the color field of a node’s announcement. As a result, when went to synchronize our graph state with that of a connecting peer, we would generate an invalid node announcement. We fix this by properly setting the color field of a node.
This commit is contained in:
@@ -879,6 +879,7 @@ func (d *AuthenticatedGossiper) processNetworkAnnouncement(nMsg *networkMsg) []l
|
||||
Alias: msg.Alias.String(),
|
||||
AuthSig: msg.Signature,
|
||||
Features: features,
|
||||
Color: msg.RGBColor,
|
||||
}
|
||||
|
||||
if err := d.cfg.Router.AddNode(node); err != nil {
|
||||
|
Reference in New Issue
Block a user