onflow / flow-evm-gateway

FlowEVM Gateway implements an Ethereum-equivalent JSON-RPC API for EVM clients to use
https://developers.flow.com/evm/about
Apache License 2.0
11 stars 9 forks source link

Make sure indexing is idempotent #400

Closed sideninja closed 1 month ago

sideninja commented 2 months ago

Indexing of resources was idempotent but since we added multiple transactions per block we broke it. We append to an existing lists of receipts and blooms. We should make sure that reindexing of existing data is idempotent. If that is not possible we should at least allow for manual reindexing with a special mode, so we can reindex any mistakes in the index.