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:
3 files changed
+62
-10
No files matched your search
@@ -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