diff --git a/nimbus/db/backends/sqlite_backend.nim b/nimbus/db/backends/sqlite_backend.nim index c3ff95ee5..d4a051d59 100644 --- a/nimbus/db/backends/sqlite_backend.nim +++ b/nimbus/db/backends/sqlite_backend.nim @@ -11,7 +11,7 @@ type proc newChainDB*(basePath: string, inMemory = false): ChainDB = result.new() - let dbPath = basePath / (if inMemory: ":memory:" else: "nimbus.db") + let dbPath = if inMemory: ":memory:" else: basePath / "nimbus.db" var s = sqlite3.open(dbPath, result.store) if s != SQLITE_OK: raiseStorageInitError()