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
2020-07-01 21:04:25 -07:00
parent 43a355321f
commit 5345069b16
2 changed files with 12 additions and 0 deletions

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