server: properly set node pubkey within initTorController

This commit is contained in:
Olaoluwa Osuntokun committed 2018-10-28 16:54:05 -07:00
1 parent eaba39d20e
commit 68d96488cc
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -1540,6 +1540,7 @@ func (s *server) initTorController() error {
Color: newNodeAnn.RGBColor,
AuthSigBytes: newNodeAnn.Signature.ToSignatureBytes(),
}
copy(selfNode.PubKeyBytes[:], s.identityPriv.PubKey().SerializeCompressed())
if err := s.chanDB.ChannelGraph().SetSourceNode(selfNode); err != nil {
return fmt.Errorf("can't set self node: %v", err)
}