Skip to content

Commit

Permalink
update the cache used for LatestRoundRequested
Browse files Browse the repository at this point in the history
  • Loading branch information
augustbleeds committed Aug 5, 2024
1 parent 51b0712 commit 242ecba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions relayer/pkg/chainlink/ocr2/contract_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (c *contractReader) LatestTransmissionDetails(
return
}

// round will never be requested on Starknet
func (c *contractReader) LatestRoundRequested(
ctx context.Context,
lookback time.Duration,
Expand Down
6 changes: 3 additions & 3 deletions relayer/pkg/chainlink/ocr2/transmissions_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ func (c *transmissionsCache) LatestTransmissionDetails(
return
}

// round will never be requested on Starknet
func (c *transmissionsCache) LatestRoundRequested(
ctx context.Context,
lookback time.Duration,
Expand All @@ -133,9 +134,8 @@ func (c *transmissionsCache) LatestRoundRequested(
c.tdLock.RLock()
defer c.tdLock.RUnlock()
configDigest = c.transmissionDetails.Digest
epoch = c.transmissionDetails.Epoch
round = c.transmissionDetails.Round
err = c.assertTransmissionsNotStale()
epoch = 0
round = 0
return
}

Expand Down

0 comments on commit 242ecba

Please sign in to comment.