chainlink icon indicating copy to clipboard operation
chainlink copied to clipboard

Add logs to identify when assumptions of log queuing behaviour are violated

Open ferglor opened this issue 10 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 Apr 16 '24 18:04 ferglor