Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When we ran the load testing, we found the queued element might not be equal to L1 block data in the batch submitter. We found these two situations:
The timestamp of the queued element
>timestamp of L1 block
andblock number of the queued element
===block number of L1 block
.The timestamp of the queued element
>timestamp of L1 block
andblock number of the queued element
>block number of L1 block
.For the second circumstance, it can be fixed through the
fixMonotonicity
function. However,fixMonotonicity
andfixSkippedDeposits
can't fix the first circumstance.To solve the problem, we need to make some changes to
fixSkippedDeposits
. fixedBatch.push(ele) pushes the original element tofixedBatch
, which has the wrong timestamp. The ideal logic is to only push the fixed batch tofixedBatch
, so commenting out this line should fix the issue.Metadata