-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
Right now, if we want to re-index EVM events from a past block height, we can set the --force-start-height value, which will update the latest-indexed Cadence height. This will cause the Event Streaming API subscriber to subscribe to a past block height, and re-index past EVM events.
The storage operations for blocks/transactions/receipts etc are all idempotent, but indexing/building the local EVM state can result in state mismatches sometimes.
It would be useful if we also truncate the local EVM state to the provided height from --force-start-height, to make re-indexing truly idempotent.
This will also be helpful in cases where we bootstrap the EVM GW from a DB snapshot.