Skip to content

Commit

Permalink
fix: hardcode schedule interval (#2841)
Browse files Browse the repository at this point in the history
* hardcode schedule interval

* changelog

* remove return
  • Loading branch information
skosito authored Sep 6, 2024
1 parent 0adef4b commit cce07f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG

## v19.1.3

### Fixes

* [2841](https://github.com/zeta-chain/node/pull/2841) - hardcode outboundScheduleInterval if it's 0

## v19.1.2

### Fixes
Expand Down
6 changes: 4 additions & 2 deletions zetaclient/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,8 @@ func (oc *Orchestrator) ScheduleCctxEVM(
outboundScheduleLookback := uint64(float64(outboundScheduleLookahead) * evmOutboundLookbackFactor)
// #nosec G115 positive
outboundScheduleInterval := uint64(observer.GetChainParams().OutboundScheduleInterval)
oc.logger.Info().
Msgf("outboundScheduleInterval set to %d from params %d", outboundScheduleInterval, observer.GetChainParams().OutboundScheduleInterval)

for idx, cctx := range cctxList {
params := cctx.GetCurrentOutboundParam()
Expand Down Expand Up @@ -506,8 +508,8 @@ func (oc *Orchestrator) ScheduleCctxEVM(
// logging observer chain params to help with debugging if issue happens again
oc.logger.Error().
Interface("observer.chain_params", observer.GetChainParams()).
Msgf("ScheduleCctxEVM: outboundScheduleInterval set to 0 for chain %d", chainID)
return
Msgf("ScheduleCctxEVM: outboundScheduleInterval set to 0 for chain %d, hardcoding to 64", chainID)
outboundScheduleInterval = 64
}

// otherwise, the normal interval is used
Expand Down

0 comments on commit cce07f1

Please sign in to comment.