server+lncfg: add new config flag to enable wumbo channels

In this commit, we add a new config flag to enable wumbo channels, with
the default being that nodes reject all wumbo channel attempts.
This commit is contained in:
Olaoluwa Osuntokun committed 2020-07-10 16:27:13 -07:00
1 parent 43a355321f
commit 5345069b16
2 files changed
+12

No files matched your search

+1
View File
@@ -410,6 +410,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr, chanDB *channeldb.DB,
NoTLVOnion: cfg.ProtocolOptions.LegacyOnion(),
NoStaticRemoteKey: cfg.ProtocolOptions.NoStaticRemoteKey(),
NoAnchors: !cfg.ProtocolOptions.AnchorCommitments(),
NoWumbo: !cfg.ProtocolOptions.Wumbo(),
})
if err != nil {
return nil, err