ethereumjs / ethereumjs-monorepo

Monorepo for the Ethereum VM TypeScript Implementation
2.6k stars 755 forks source link

EVM: Refactor accessWitness from StateManager into EVM #3749

Open gabrocheleau opened 6 days ago

gabrocheleau commented 6 days ago

We have recently discussed the possibility of migrating the accessWitness from the StateManager to the EVM. It makes conceptual sense for the EVM to be in charge of this low-level tracking rather than the StateManager.

The accessWitness file itself is fairly minimal, only importing from the common and util packages, so the migration of the file itself is straightforward.

However there are some additional considerations:

acolytec3 commented 6 days ago

The accessWitness interface already exists in common so point 3 can be considered done already.