server: properly set node pubkey within initTorController
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user