mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-10 14:26:26 +00:00
LMDB: create db dir
This commit is contained in:
parent
7113259137
commit
14e1e3af52
@ -142,6 +142,7 @@ proc init*(T: type LmdbStoreRef, basePath: string, readOnly = false): T =
|
||||
if (let x = mdb_env_create(env); x != 0):
|
||||
raiseLmdbError(x)
|
||||
|
||||
createDir(basePath)
|
||||
let dataDir = basePath / "nimbus.lmdb"
|
||||
|
||||
if (let x = mdb_env_set_mapsize(env, LMDB_MAP_SIZE); x != 0):
|
||||
|
Loading…
x
Reference in New Issue
Block a user