From cce07f1a3977276df2f837839df666f890609551 Mon Sep 17 00:00:00 2001 From: skosito Date: Fri, 6 Sep 2024 17:06:09 +0100 Subject: [PATCH] fix: hardcode schedule interval (#2841) * hardcode schedule interval * changelog * remove return --- changelog.md | 6 ++++++ zetaclient/orchestrator/orchestrator.go | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 777a49b3b4..a4c93d2baf 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/zetaclient/orchestrator/orchestrator.go b/zetaclient/orchestrator/orchestrator.go index 93b3af3893..fdd19550e6 100644 --- a/zetaclient/orchestrator/orchestrator.go +++ b/zetaclient/orchestrator/orchestrator.go @@ -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() @@ -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