chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

Track when we enqueue logs for the same upkeep on the same block more than once

Open ferglor opened this issue 9 months ago • 1 comments

https://smartcontract-it.atlassian.net/browse/AUTO-10164

WIth this PR, we're updating some comments within the buffer implementation, to explicitly declare our assumptions on how the buffer will be used.

Further to this, we're also adding logs to identify scenarios when these assumptions are violated. To achieve this, we use a map to track the number of times we enqueue upkeep logs for a particular block number.

Testing

Running the load test, we don't see the logs appear for enqueuing upkeep logs for the same block number more than once.

ferglor avatar May 10 '24 17:05 ferglor