wallet-core: use sqlite for in-memory DB
This commit is contained in:
parent
a748ebd053
commit
828e4ad3ef
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user