Skip to content

Improve atomicity of slashing protection DB creation #1537

Open
@michaelsproul

Description

@michaelsproul

Several users on Discord have reported their VC being unable to start because of missing tables in the slashing protection SQLite database.

As far as I can tell, this can only happen if the VC is stopped in the first moments of startup, after it has created the SQLite DB but before it has created the tables.

One way to fix it might be to create the DB in a temporary location and then use an atomic filesystem operation to move it into position

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