ethereum / ethereum/execution-specs

Test binary tree post flip cache invalidation

Open
#3,333 0 comments 0 reactions 0 assignees View on GitHub
C-binary
Dominant language
Python
Stars
1.2k
Forks
505
Avg merge
2d 14h
Merged PRs (30d)
116

Description

## Observation

Many clients will store caching layers on top of the database for state. Some of these caches will flush at certain intervals like after 128 blocks.

## Suggestion

This is an issue to track testing these caching mechanisms. One thing in particular is that rpc methods should not use the MPT cache post flip.

I would recommend triggering cache invalidations etc, though this requires knowing the caching mechanism for each client to do effectively

Contributor guide

Open the contributing guide

Research direction

Start by identifying the RPC methods and client MPT cache behavior relevant after the post flip. Define scenarios that trigger cache invalidation, including interval-based flushing such as after 128 blocks, then verify that RPC methods do not use the MPT cache post flip across the relevant clients.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, databases, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.