From abcb8f3a0894ad06f8c7cf7c666cfa8fee555de3 Mon Sep 17 00:00:00 2001 From: Augustus Chang Date: Mon, 5 Aug 2024 13:26:42 -0400 Subject: [PATCH] remove need to query chain --- relayer/pkg/chainlink/ocr2/contract_reader.go | 8 +------- relayer/pkg/chainlink/ocr2/transmissions_cache.go | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/relayer/pkg/chainlink/ocr2/contract_reader.go b/relayer/pkg/chainlink/ocr2/contract_reader.go index 0f01a0eda..10ba93043 100644 --- a/relayer/pkg/chainlink/ocr2/contract_reader.go +++ b/relayer/pkg/chainlink/ocr2/contract_reader.go @@ -111,15 +111,9 @@ func (c *contractReader) LatestRoundRequested( round uint8, err error, ) { - transmissionDetails, err := c.reader.LatestTransmissionDetails(ctx, c.address) - if err != nil { - err = fmt.Errorf("couldn't get transmission details: %w", err) - } - - configDigest = transmissionDetails.Digest + configDigest = types.ConfigDigest{} epoch = 0 round = 0 - return } diff --git a/relayer/pkg/chainlink/ocr2/transmissions_cache.go b/relayer/pkg/chainlink/ocr2/transmissions_cache.go index be3a14d93..3a5e4bece 100644 --- a/relayer/pkg/chainlink/ocr2/transmissions_cache.go +++ b/relayer/pkg/chainlink/ocr2/transmissions_cache.go @@ -131,9 +131,7 @@ func (c *transmissionsCache) LatestRoundRequested( round uint8, err error, ) { - c.tdLock.RLock() - defer c.tdLock.RUnlock() - configDigest = c.transmissionDetails.Digest + configDigest = types.ConfigDigest{} epoch = 0 round = 0 return