chore(consensus): update maxTrackedPayloads to maxBlocksPerBatch (#389)

* increase payload capacity

* feat: change to `maxBlocksPerBatch`

---------

Co-authored-by: David <david@taiko.xyz>
This commit is contained in:
maskpp 2025-03-13 22:23:41 +08:00 committed by GitHub
parent 364acd00d1
commit 516eff7ae9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,7 @@ import (
// maxTrackedPayloads is the maximum number of prepared payloads the execution
// engine tracks before evicting old ones. Ideally we should only ever track the
// latest one; but have a slight wiggle room for non-ideal conditions.
const maxTrackedPayloads = 10
const maxTrackedPayloads = 768 // CHANGE(taiko): change to use `maxBlocksPerBatch`
// maxTrackedHeaders is the maximum number of executed payloads the execution
// engine tracks before evicting old ones. These are tracked outside the chain