Skip to content

Commit

Permalink
Add disable chain fee deviation check option
Browse files Browse the repository at this point in the history
  • Loading branch information
ogtownsend committed Jan 31, 2025
1 parent 1e08217 commit 0e619c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commit/chainfee/outcome.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ func (p *processor) getGasPricesToUpdate(
if feeInfo == nil {
continue
}

if p.cfg.DisableChainFeeDeviationCheck {
lggr.Debugf("chain fee deviation check disabled, skipping deviation check for chain %d", chain)
continue
}

ci, ok := feeInfo[chain]
if !ok {
lggr.Warnf("could not find fee info for chain %d", chain)
Expand Down
2 changes: 2 additions & 0 deletions pluginconfig/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ type CommitOffchainConfig struct {
//TODO: Rename to something with ChainFee
RemoteGasPriceBatchWriteFrequency commonconfig.Duration `json:"remoteGasPriceBatchWriteFrequency"`

DisableChainFeeDeviationCheck bool `json:"disableChainFeeDeviationCheck"`

FeeInfo map[cciptypes.ChainSelector]FeeInfo `json:"feeInfo"`

// TokenPriceBatchWriteFrequency is the frequency at which the commit plugin should
Expand Down

0 comments on commit 0e619c6

Please sign in to comment.