Skip to content

Commit

Permalink
use const variable for better documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Nov 5, 2023
1 parent 8bdeb32 commit 1275932
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zetaclient/zetacore_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ func (co *CoreObserver) startSendScheduler() {
co.logger.ZetaChainWatcher.Error().Msgf("mismatch chainid: want %d, got %d", c.ChainId, params.ReceiverChainId)
continue
}
if params.OutboundTxTssNonce > cctxList[0].GetCurrentOutTxParam().OutboundTxTssNonce+120 {
const MaxLookaheadNonce = 120
if params.OutboundTxTssNonce > cctxList[0].GetCurrentOutTxParam().OutboundTxTssNonce+MaxLookaheadNonce {
co.logger.ZetaChainWatcher.Error().Msgf("nonce too high: signing %d, earliest pending %d", params.OutboundTxTssNonce, cctxList[0].GetCurrentOutTxParam().OutboundTxTssNonce)
break
}
Expand Down

0 comments on commit 1275932

Please sign in to comment.