Skip to content

Ability to replay txs from LevelDB on startup #227

@mdyring

Description

@mdyring

This would allow an application to not persist its state but just rely on tx replay on startup to restore the last state.

Typical use-case would be to re-initialize the state after code changes / upgrades. It seems a good idea to do a replay vs. letting the app persist the state itself (do snapshots etc), as it will force the upgraded application to demonstrate that it can gracefully process all old txs.

Not knowing the internals of what Tendermint stores, it might be possible to determine the point from where to replay based on the application hash returned in the first commit() after the TMSP connection is etablished.. Alternatively something simple as just passing a commandline parameter which will force this behaviour on initial connect after startup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C:abciComponent: Application Blockchain Interface

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions