@@ -511,7 +511,7 @@ type Config struct {
511
511
512
512
// NotifyOpenChannelEvent informs the ChannelNotifier when channels
513
513
// transition from pending open to open.
514
- NotifyOpenChannelEvent func (wire.OutPoint , * btcec.PublicKey ) error
514
+ NotifyOpenChannelEvent func (wire.OutPoint , * btcec.PublicKey )
515
515
516
516
// OpenChannelPredicate is a predicate on the lnwire.OpenChannel message
517
517
// and on the requesting node's public key that returns a bool which
@@ -521,13 +521,13 @@ type Config struct {
521
521
// NotifyPendingOpenChannelEvent informs the ChannelNotifier when
522
522
// channels enter a pending state.
523
523
NotifyPendingOpenChannelEvent func (wire.OutPoint ,
524
- * channeldb.OpenChannel , * btcec.PublicKey ) error
524
+ * channeldb.OpenChannel , * btcec.PublicKey )
525
525
526
526
// NotifyFundingTimeout informs the ChannelNotifier when a pending-open
527
527
// channel times out because the funding transaction hasn't confirmed.
528
528
// This is only called for the fundee and only if the channel is
529
529
// zero-conf.
530
- NotifyFundingTimeout func (wire.OutPoint , * btcec.PublicKey ) error
530
+ NotifyFundingTimeout func (wire.OutPoint , * btcec.PublicKey )
531
531
532
532
// EnableUpfrontShutdown specifies whether the upfront shutdown script
533
533
// is enabled.
@@ -1319,13 +1319,9 @@ func (f *Manager) advancePendingChannelState(channel *channeldb.OpenChannel,
1319
1319
1320
1320
// Inform the ChannelNotifier that the channel has transitioned
1321
1321
// from pending open to open.
1322
- if err := f .cfg .NotifyOpenChannelEvent (
1322
+ f .cfg .NotifyOpenChannelEvent (
1323
1323
channel .FundingOutpoint , channel .IdentityPub ,
1324
- ); err != nil {
1325
- log .Errorf ("Unable to notify open channel event for " +
1326
- "ChannelPoint(%v): %v" ,
1327
- channel .FundingOutpoint , err )
1328
- }
1324
+ )
1329
1325
1330
1326
// Find and close the discoverySignal for this channel such
1331
1327
// that ChannelReady messages will be processed.
@@ -2666,12 +2662,9 @@ func (f *Manager) fundeeProcessFundingCreated(peer lnpeer.Peer,
2666
2662
2667
2663
// Inform the ChannelNotifier that the channel has entered
2668
2664
// pending open state.
2669
- if err := f .cfg .NotifyPendingOpenChannelEvent (
2665
+ f .cfg .NotifyPendingOpenChannelEvent (
2670
2666
fundingOut , completeChan , completeChan .IdentityPub ,
2671
- ); err != nil {
2672
- log .Errorf ("Unable to send pending-open channel event for " +
2673
- "ChannelPoint(%v) %v" , fundingOut , err )
2674
- }
2667
+ )
2675
2668
2676
2669
// At this point we have sent our last funding message to the
2677
2670
// initiating peer before the funding transaction will be broadcast.
@@ -2891,13 +2884,9 @@ func (f *Manager) funderProcessFundingSigned(peer lnpeer.Peer,
2891
2884
case resCtx .updates <- upd :
2892
2885
// Inform the ChannelNotifier that the channel has entered
2893
2886
// pending open state.
2894
- if err := f .cfg .NotifyPendingOpenChannelEvent (
2887
+ f .cfg .NotifyPendingOpenChannelEvent (
2895
2888
* fundingPoint , completeChan , completeChan .IdentityPub ,
2896
- ); err != nil {
2897
- log .Errorf ("Unable to send pending-open channel " +
2898
- "event for ChannelPoint(%v) %v" , fundingPoint ,
2899
- err )
2900
- }
2889
+ )
2901
2890
2902
2891
case <- f .quit :
2903
2892
return
@@ -2955,11 +2944,7 @@ func (f *Manager) fundingTimeout(c *channeldb.OpenChannel,
2955
2944
}
2956
2945
2957
2946
// Notify other subsystems about the funding timeout.
2958
- err := f .cfg .NotifyFundingTimeout (c .FundingOutpoint , c .IdentityPub )
2959
- if err != nil {
2960
- log .Errorf ("failed to notify of funding timeout for " +
2961
- "ChanPoint(%v): %v" , c .FundingOutpoint , err )
2962
- }
2947
+ f .cfg .NotifyFundingTimeout (c .FundingOutpoint , c .IdentityPub )
2963
2948
2964
2949
timeoutErr := fmt .Errorf ("timeout waiting for funding tx (%v) to " +
2965
2950
"confirm" , c .FundingOutpoint )
@@ -3341,13 +3326,9 @@ func (f *Manager) handleFundingConfirmation(
3341
3326
3342
3327
// Inform the ChannelNotifier that the channel has transitioned from
3343
3328
// pending open to open.
3344
- if err := f .cfg .NotifyOpenChannelEvent (
3329
+ f .cfg .NotifyOpenChannelEvent (
3345
3330
completeChan .FundingOutpoint , completeChan .IdentityPub ,
3346
- ); err != nil {
3347
- log .Errorf ("Unable to notify open channel event for " +
3348
- "ChannelPoint(%v): %v" , completeChan .FundingOutpoint ,
3349
- err )
3350
- }
3331
+ )
3351
3332
3352
3333
// Close the discoverySignal channel, indicating to a separate
3353
3334
// goroutine that the channel now is marked as open in the database
0 commit comments