Skip to content

Commit

Permalink
remove need to query chain
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Aug 5, 2024
1 parent 242ecba commit abcb8f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 1 addition & 7 deletions relayer/pkg/chainlink/ocr2/contract_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 1 addition & 3 deletions relayer/pkg/chainlink/ocr2/transmissions_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abcb8f3

Please sign in to comment.