Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Implement tx log reconstruction #180

Closed
austinabell opened this issue Mar 5, 2020 · 0 comments · Fixed by #210
Closed

Implement tx log reconstruction #180

austinabell opened this issue Mar 5, 2020 · 0 comments · Fixed by #210
Assignees

Comments

@austinabell
Copy link

Currently, the only way a log retrieval will return full logs is when the logs are still in the StateDB logs cache after they had been generated within the EVM. This issue is to reconstruct any logs queried that do not exist in this cache.

The query will use this function within StateDB: https://github.com/ChainSafe/ethermint/blob/3ac6359e1403730fdf6a9807d04fbb29f567ed99/x/evm/types/statedb.go#L291 to retrieve logs.

To implement this, there will have to be a query where inside the query the statedb is used/ copied and replayed the transactions in the block until the tx whose logs need to be regenerated, then return those logs from the StateDB. Likely with some workarounds to fit into this system the workflow should be similar to geth for regenerating

@noot noot self-assigned this Mar 11, 2020
@noot noot closed this as completed Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants