Skip to content

Commit ea42e54

Browse files
committed
loopout: more logging in sweeping code
1 parent c03c714 commit ea42e54

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

loopout.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,11 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context,
12461246
s.height = notification.(int32)
12471247
timerChan = s.timerFactory(repushDelay)
12481248

1249+
s.log.Infof("Received block %d", s.height)
1250+
12491251
case <-timerChan:
1252+
s.log.Infof("Checking the sweep")
1253+
12501254
// canSweep will return false if the preimage is
12511255
// not revealed yet but the conf target is closer than
12521256
// 20 blocks. In this case to be sure we won't attempt
@@ -1268,6 +1272,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context,
12681272
}
12691273

12701274
// Send the sweep to the sweeper.
1275+
s.log.Infof("(Re)adding the sweep to sweepbatcher")
12711276
err := s.batcher.AddSweep(ctx, &sweepReq)
12721277
if err != nil {
12731278
return nil, err

0 commit comments

Comments
 (0)