discovery: properly set node's color when syncing graph state

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.
This commit is contained in:
Olaoluwa Osuntokun 2017-12-02 18:33:05 -08:00
parent ee7c3ff01c
commit 37c54153fa
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 1 additions and 0 deletions

View File

@ -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)