Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Dec 18, 2024
1 parent 8acc465 commit 2746650
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions btcstaking-tracker/stakingeventwatcher/stakingeventwatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ func (sew *StakingEventWatcher) activateBtcDelegation(

if err := sew.waitForRequiredDepth(ctx, stakingTxHash, &inclusionBlockHash, requiredDepth); err != nil {
sew.logger.Warnf("exceeded waiting for required depth, will try later: err %v", err)

return
}

Expand Down Expand Up @@ -731,6 +732,7 @@ func (sew *StakingEventWatcher) waitForRequiredDepth(
defer sew.latency("waitForRequiredDepth")()

var depth uint32

return retry.Do(func() error {
var err error
depth, err = sew.babylonNodeAdapter.QueryHeaderDepth(inclusionBlockHash)
Expand Down

0 comments on commit 2746650

Please sign in to comment.