server: set new optional global TLV feature bit by default

This commit is contained in:
Olaoluwa Osuntokun 2019-07-30 21:53:46 -07:00
parent 9145c0fd38
commit 1345ca2038
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

View File

@ -312,6 +312,7 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB,
}
globalFeatures := lnwire.NewRawFeatureVector()
globalFeatures.Set(lnwire.TLVOnionPayloadOptional)
var serializedPubKey [33]byte
copy(serializedPubKey[:], privKey.PubKey().SerializeCompressed())