From 7967744ef9ac240cc903d144a3e5ffc09bd06327 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 25 Apr 2024 14:29:28 -0400 Subject: [PATCH] Force mercury poll time to 1s (#12771) --- core/services/ocr2/delegate.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/services/ocr2/delegate.go b/core/services/ocr2/delegate.go index 2e623ab5467..dbde65efe40 100644 --- a/core/services/ocr2/delegate.go +++ b/core/services/ocr2/delegate.go @@ -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,