Skip to content

Commit

Permalink
fix: skip uncanonical block call
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Oct 13, 2024
1 parent c899507 commit 4006a5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/symStaking/keeper/symbiotic_state_change.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ func (k *Keeper) SymbioticUpdateValidatorsPower(ctx context.Context) error {
break
}

if strings.Contains(err.Error(), "is not currently canonical") {
k.Logger.Warn("not canonical block hash", "hash", cachedBlockHash.BlockHash)
break
}

k.apiUrls.RotateEthUrl()
time.Sleep(time.Millisecond * SLEEP_ON_RETRY)
}
Expand Down

0 comments on commit 4006a5c

Please sign in to comment.