Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKrishna committed May 2, 2022
1 parent c283e30 commit f94c988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/setu/processor/staking.go
Expand Up @@ -356,7 +356,7 @@ func (sp *StakingProcessor) checkValidNonce(validatorId uint64, txnNonce uint64)
if currentNonce+1 != txnNonce {
diff := txnNonce - currentNonce
if diff > 10 {
return false, 10, nil
diff = 10
}
sp.Logger.Error("Nonce for the given event not in order", "validatorId", validatorId, "currentNonce", currentNonce, "txnNonce", txnNonce, "delay", diff*uint64(defaultDelayDuration))
return false, diff, nil
Expand Down

0 comments on commit f94c988

Please sign in to comment.