Skip to content

Allow resetting EVM state index to a past block #883

@m-Peter

Description

@m-Peter

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions