cosmos / ethermint

Ethermint is a scalable and interoperable Ethereum, built on Proof-of-Stake with fast-finality using the Cosmos SDK.
https://ethermint.dev/
Apache License 2.0
409 stars 161 forks source link

Problem: EVM keeper keeps intermediate states inside #948

Closed yihuang closed 3 years ago

yihuang commented 3 years ago

The States

The problem

Proposal

Since the current design is to satisfy the StateDB interface, we can make a StateDB struct on the fly inside the ApplyMessage, and the keeper is clean from the mutable states, and pass the ctx around in the keeper methods.

yihuang commented 3 years ago

sorry, wrong place.