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 -1
View File
@@ -29,7 +29,7 @@ through the network.
## Lightning Network Specification Compliance
`lnd` _fully_ conforms to the [Lightning Network specification
(BOLTs)](https://github.com/lightningnetwork/lightning-rfc). BOLT stands for:
Basic of Lightning Technologies. The specifications are currently being drafted
Basis of Lightning Technology. The specifications are currently being drafted
by several groups of implementers based around the world including the
developers of `lnd`. The set of specification documents as well as our
implementation of the specification are still a work-in-progress. With that
+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)
}