mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopout: more logging in sweeping code
This commit is contained in:
parent
957ca21e61
commit
5c9f6f7d7a
1 changed files with 5 additions and 0 deletions
|
|
@ -1246,7 +1246,11 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context,
|
|||
s.height = notification.(int32)
|
||||
timerChan = s.timerFactory(repushDelay)
|
||||
|
||||
s.log.Infof("Received block %d", s.height)
|
||||
|
||||
case <-timerChan:
|
||||
s.log.Infof("Checking the sweep")
|
||||
|
||||
// canSweep will return false if the preimage is
|
||||
// not revealed yet but the conf target is closer than
|
||||
// 20 blocks. In this case to be sure we won't attempt
|
||||
|
|
@ -1268,6 +1272,7 @@ func (s *loopOutSwap) waitForHtlcSpendConfirmedV2(globalCtx context.Context,
|
|||
}
|
||||
|
||||
// Send the sweep to the sweeper.
|
||||
s.log.Infof("(Re)adding the sweep to sweepbatcher")
|
||||
err := s.batcher.AddSweep(ctx, &sweepReq)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue