EscanBE / evermint

Evermint is a fork of open source Evmos, maintains bug fixes, customization and enable developers to fork and transform to their chain, fully customized naming, in just 2 steps. For research and development purpose.
GNU Lesser General Public License v3.0
3 stars 3 forks source link

fix(evm): support 256 blocks for `GetHashFn` #169

Closed VictorTrustyDev closed 2 months ago

VictorTrustyDev commented 2 months ago

According to Ethereum, current block hash + 255 historical block hash are supported by GetHashFn.

This PR introduce new store to persist block hash into store, the most recent 256 records are kept and GetHashFn retrieves directly from here.