From 49910f255f77e14fccf189353d188efac00d1445 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Wed, 20 Apr 2022 13:51:53 -0400 Subject: sqlite: Use in-memory db instead of temp for mockdb The mock db can be in-memory rather than just at temp file. --- src/wallet/walletdb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wallet/walletdb.cpp') diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 26908b3777..72d483e617 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -1203,7 +1203,7 @@ std::unique_ptr CreateMockWalletDatabase(DatabaseOptions& option if (format == DatabaseFormat::SQLITE) { #ifdef USE_SQLITE - return std::make_unique("", "", options, true); + return std::make_unique(":memory:", "", options, true); #endif assert(false); } -- cgit v1.2.3