imotai / revm

Ethereum Virtual Machine written in rust that is fast and simple to use
https://bluealloy.github.io/revm/
MIT License
0 stars 0 forks source link

feature move JournalState depth to EvmContext #23

Open imotai opened 5 months ago

imotai commented 5 months ago

There is a new usage for Journaling and that is reverting whole transaction. Currently JournalState takes care of call depth, this is not necessary to be there and can be moved to a more appropriate place, EvmContext and this would allow JournalState to be used to create a snapshot and revert it by demand.

imotai commented 5 months ago

https://chat.kuaima.dev/share/0d7808c0-c993-4f26-b42a-f667f1465f4c