Skip to content

Commit

Permalink
manually cherry pick remediation for schedule 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
skosito committed Sep 7, 2024
1 parent 31b2071 commit 1697788
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zetaclient/orchestrator/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,6 @@ func (oc *Orchestrator) ScheduleCctxEVM(
outboundScheduleLookback := uint64(float64(outboundScheduleLookahead) * evmOutboundLookbackFactor)
// #nosec G115 positive
outboundScheduleInterval := uint64(observer.GetChainParams().OutboundScheduleInterval)

// determining critical outbound; if it satisfies following criteria
// 1. it's the first pending outbound for this chain
// 2. the following 5 nonces have been in tracker
Expand Down Expand Up @@ -507,8 +506,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

Check warning on line 510 in zetaclient/orchestrator/orchestrator.go

View check run for this annotation

Codecov / codecov/patch

zetaclient/orchestrator/orchestrator.go#L509-L510

Added lines #L509 - L510 were not covered by tests
}

// otherwise, the normal interval is used
Expand Down

0 comments on commit 1697788

Please sign in to comment.