wallet-core: use sqlite for in-memory DB

This commit is contained in:
Florian Dold 2023-08-22 08:55:33 +02:00
parent a748ebd053
commit 828e4ad3ef
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -148,9 +148,11 @@ export async function createNativeWalletHost2(
let dbResp: MakeDbResult;
if (!args.persistentStoragePath || args.persistentStoragePath.endsWith(".json")) {
if (args.persistentStoragePath &&args.persistentStoragePath.endsWith(".json")) {
logger.info("using legacy file-based DB backend");
dbResp = await makeFileDb(args);
} else {
logger.info("using sqlite3 DB backend");
dbResp = await makeSqliteDb(args);
}