ethereum / ethereum/execution-specs

Test reorgs of the binary trie post flip

Open
#3,334 2 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

At some block N, we would switch from the MPT to the PBT. Ideally nodes do not drop all MPT related state because if we reorg back to block N-1 we will be at the MPT block again. Nodes should in the worse case drop state after block N has been finalised.

## Suggestion

This is a tracking issue for testing this reorg edge case

Contributor guide

Open the contributing guide

Research direction

Start by locating the MPT/PBT transition logic and existing reorganization tests in the execution specs. Exercise a reorg from the PBT transition block back to the preceding MPT block, then verify state is retained until the transition block is finalized; done means this edge case is covered by a passing test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
blockchain, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.