From 37c54153fa4986274556706009c32188ce1895b4 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 2 Dec 2017 18:33:05 -0800 Subject: [PATCH] discovery: properly set node's color when syncing graph state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes an existing bug wherein we would blank out a node’s color instead of properly setting the field when syncing graph state with another node This would cause the node to reject the node announcement and we would generate an we would invalidate the signature of the node announcement. We fix this simply by properly setting the node announcement. --- discovery/gossiper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/discovery/gossiper.go b/discovery/gossiper.go index db7e9be1..7930ecc1 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -251,6 +251,7 @@ func (d *AuthenticatedGossiper) SynchronizeNode(pub *btcec.PublicKey) error { NodeID: node.PubKey, Alias: alias, Features: node.Features.RawFeatureVector, + RGBColor: node.Color, } announceMessages = append(announceMessages, ann)