File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3624,6 +3624,9 @@ func (l *channelLink) updateChannelFee(ctx context.Context,
3624
3624
// the switch.
3625
3625
func (l * channelLink ) processRemoteSettleFails (fwdPkg * channeldb.FwdPkg ) {
3626
3626
if len (fwdPkg .SettleFails ) == 0 {
3627
+ l .log .Trace ("fwd package has no settle/fails to process " +
3628
+ "exiting early" )
3629
+
3627
3630
return
3628
3631
}
3629
3632
@@ -3728,6 +3731,13 @@ func (l *channelLink) processRemoteSettleFails(fwdPkg *channeldb.FwdPkg) {
3728
3731
//
3729
3732
//nolint:funlen
3730
3733
func (l * channelLink ) processRemoteAdds (fwdPkg * channeldb.FwdPkg ) {
3734
+ // Exit early if there are no adds to process.
3735
+ if len (fwdPkg .Adds ) == 0 {
3736
+ l .log .Trace ("fwd package has no adds to process exiting early" )
3737
+
3738
+ return
3739
+ }
3740
+
3731
3741
l .log .Tracef ("processing %d remote adds for height %d" ,
3732
3742
len (fwdPkg .Adds ), fwdPkg .Height )
3733
3743
You can’t perform that action at this time.
0 commit comments