forked from evmos/evmos
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: x/evm
indexing EvmBlock for faster Json-RPC
#90
Labels
enhancement
Enhancement / bug-fixes or re-work on old feature
Comments
VictorTrustyDev
changed the title
Feature Request:
Feature Request: Jan 13, 2024
x/evm
indexing EvmBlock for faster queryx/evm
indexing EvmBlock for faster Json-RPC
VictorTrustyDev
added
the
enhancement
Enhancement / bug-fixes or re-work on old feature
label
Jan 13, 2024
WIP!!! Problems need to be solved:
Module ABCI events:
Store:
By using fixed key for new stores, data is prune-able on prune-nodes. Events:
New specs:
RPC endpoints are targeted to only fetch from
EVMTxIndexer:
Backward compatible:
Unknown result:
|
Spec changed by the spec defined in 2nd post (above):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem: RPC is complex with fetching data from everywhere in order to build response for Json-RPC queries. That can down performance.
Solution: build entire EVM block then indexes it during
EndBlock
. Later can just get block and return corresponding result for related Json-RPC endpoints.Props:
Cons:
Backward compatible for existing chains:
x/evm
keeper to see if block is available or not< enabled
=> fallback to legacy implementation.>= enabled
=> it is pruned, returns error.Steps:
x/evm
storeChildren tasks:
The text was updated successfully, but these errors were encountered: