Skip to content

Commit

Permalink
Force mercury poll time to 1s (#12771)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav authored Apr 25, 2024
1 parent fa5b227 commit 7967744
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/services/ocr2/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,11 @@ func (d *Delegate) newServicesMercury(
return nil, errors.New("could not coerce PluginProvider to MercuryProvider")
}

// HACK: We need fast config switchovers because they create downtime. This
// won't be properly resolved until we implement blue-green deploys:
// https://smartcontract-it.atlassian.net/browse/MERC-3386
lc.ContractConfigTrackerPollInterval = 1 * time.Second // Mercury requires a fast poll interval, this is the fastest that libocr supports. See: https://github.com/smartcontractkit/offchain-reporting/pull/520

oracleArgsNoPlugin := libocr2.MercuryOracleArgs{
BinaryNetworkEndpointFactory: d.peerWrapper.Peer2,
V2Bootstrappers: bootstrapPeers,
Expand Down

0 comments on commit 7967744

Please sign in to comment.