op-program: Re-add caching wrapper to oracles. #5587
Merged
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
The caching wrapper for oracles had been lost as part of changes to fault proof client startup. Re-add them and increase the l2 block cache size so it covers the likely number of L1 block it has to walk back to as part of resetting the derivation pipeline.
The numbers don't have to be perfect - the current numbers were checked by running a verification against Goerli. Even when replaying 2000 blocks it was only the l2 block cache limit that was hit because of that initial walk back. Other caches seem to be a reasonable size (not too big to cause memory issues but big enough to not have to evict items in normal cases).
Also found some of the old setup code that was no longer used so deleted it.
Metadata