You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to take this. The check at store.rs#L2849-L2850 treats any non-empty datadir as an error, but the real intent is "don't clobber an existing DB." Plan: instead of asserting the dir is empty, probe for the actual DB marker (libmdbx mdbx.dat / the rocksdb dir, per configured backend) and only refuse when a real prior DB exists — otherwise proceed so unrelated files (JWT, etc.) can coexist, which is what EthDocker needs. I'll add tests for (a) empty dir, (b) dir with only a JWT, (c) dir with an existing DB. Happy to align on the exact marker per backend before I open the PR.
Activity
MegaRedHand commentedon Dec 18, 2025
Alt: we could store the DB inside
<datadir_path>/data. Would be cleaner and more difficult for users to trip onpjdurden commentedon Jun 3, 2026
I'd like to take this. The check at
store.rs#L2849-L2850treats any non-empty datadir as an error, but the real intent is "don't clobber an existing DB." Plan: instead of asserting the dir is empty, probe for the actual DB marker (libmdbxmdbx.dat/ the rocksdb dir, per configured backend) and only refuse when a real prior DB exists — otherwise proceed so unrelated files (JWT, etc.) can coexist, which is what EthDocker needs. I'll add tests for (a) empty dir, (b) dir with only a JWT, (c) dir with an existing DB. Happy to align on the exact marker per backend before I open the PR.fix(l1): don't treat unrelated datadir files as an existing DB (lambd…