mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
funding+server.go: modify notifications to pass through server
This modifies the various channelnotifier notification functions to instead hit the server and then call the notification routine. This allows us to accurately modify the server's maps.
This commit is contained in:
@@ -1681,9 +1681,10 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
MaxPendingChannels: cfg.MaxPendingChannels,
|
||||
RejectPush: cfg.RejectPush,
|
||||
MaxLocalCSVDelay: chainCfg.MaxLocalDelay,
|
||||
NotifyOpenChannelEvent: s.channelNotifier.NotifyOpenChannelEvent,
|
||||
NotifyOpenChannelEvent: s.notifyOpenChannelPeerEvent,
|
||||
OpenChannelPredicate: chanPredicate,
|
||||
NotifyPendingOpenChannelEvent: s.channelNotifier.NotifyPendingOpenChannelEvent,
|
||||
NotifyPendingOpenChannelEvent: s.notifyPendingOpenChannelPeerEvent,
|
||||
NotifyFundingTimeout: s.notifyFundingTimeoutPeerEvent,
|
||||
EnableUpfrontShutdown: cfg.EnableUpfrontShutdown,
|
||||
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
|
||||
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
|
||||
|
Reference in New Issue
Block a user