Skip to content

Support non-empty directory as datadir #5680

Description

@ManuelBilbao

EthDocker puts the JWT among other stuff in the same directory as the datadir, causing an error as the code expect an empty dir (here:)

ethrex/crates/storage/store.rs

Lines 2849 to 2850 in 2f60e7e

// If datadir exists but is not empty, this is probably a DB for an
// old ethrex version and we should return an error

We should do a better check for old DB existance and allow non-empty dirs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions