Is your feature request related to a problem? Please describe.
We are pushing the difference in storage and state after each block, this means that we can theoretically derive the state at a particular block number using the available data.
Describe the solution you'd like
We need to also maintain a current state and current storage table in the database. This function can be either used to create the current state, current storage.
Is your feature request related to a problem? Please describe. We are pushing the difference in storage and state after each block, this means that we can theoretically derive the state at a particular block number using the available data.
Describe the solution you'd like We need to also maintain a current state and current storage table in the database. This function can be either used to create the current state, current storage.
Sample algorithm for getting current state.
https://stackoverflow.com/questions/7745609/sql-select-only-rows-with-max-value-on-a-column?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa