server: set HaveNodeAnnouncement=true for self LightningNode
This commit is contained in:
parent
39a59bbe6f
commit
ebbe6d7a10
@ -208,6 +208,7 @@ func newServer(listenAddrs []string, chanDB *channeldb.DB, cc *chainControl,
|
|||||||
// TODO(roasbeef): make alias configurable
|
// TODO(roasbeef): make alias configurable
|
||||||
alias := lnwire.NewAlias(hex.EncodeToString(serializedPubKey[:10]))
|
alias := lnwire.NewAlias(hex.EncodeToString(serializedPubKey[:10]))
|
||||||
self := &channeldb.LightningNode{
|
self := &channeldb.LightningNode{
|
||||||
|
HaveNodeAnnouncement: true,
|
||||||
LastUpdate: time.Now(),
|
LastUpdate: time.Now(),
|
||||||
Addresses: selfAddrs,
|
Addresses: selfAddrs,
|
||||||
PubKey: privKey.PubKey(),
|
PubKey: privKey.PubKey(),
|
||||||
|
Loading…
Reference in New Issue
Block a user