multi: add max local csv config option
To allow nodes more control over the amount of time that their funds will be locked up, we add a MaxLocalCSVDelay option which sets the maximum csv delay we will accept for all channels. We default to the existing constant of 10000, and set a sane minimum on this value so that clients cannot set unreasonably low maximum csv delays which will result in their node rejecting all channels.
This commit is contained in:
8 files changed
+235
-19
No files matched your search
@@ -1174,6 +1174,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
MaxChanSize: btcutil.Amount(cfg.MaxChanSize),
|
||||
MaxPendingChannels: cfg.MaxPendingChannels,
|
||||
RejectPush: cfg.RejectPush,
|
||||
MaxLocalCSVDelay: chainCfg.MaxLocalDelay,
|
||||
NotifyOpenChannelEvent: s.channelNotifier.NotifyOpenChannelEvent,
|
||||
OpenChannelPredicate: chanPredicate,
|
||||
NotifyPendingOpenChannelEvent: s.channelNotifier.NotifyPendingOpenChannelEvent,
|
||||
|
||||
Reference in new issue
Block a user