aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2022-04-20 13:51:53 -0400
committerAndrew Chow <achow101-github@achow101.com>2022-05-10 11:54:02 -0400
commit49910f255f77e14fccf189353d188efac00d1445 (patch)
tree64d200fda47e056c2aaf89bf80774b39808bf64a /src/wallet/walletdb.cpp
parenta1080802f8d7c3d1251ec6f2be33031f568deafa (diff)
downloadbitcoin-49910f255f77e14fccf189353d188efac00d1445.tar.xz
sqlite: Use in-memory db instead of temp for mockdb
The mock db can be in-memory rather than just at temp file.
Diffstat (limited to 'src/wallet/walletdb.cpp')
-rw-r--r--src/wallet/walletdb.cpp2
1 files changed, 1 insertions, 1 deletions
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<WalletDatabase> CreateMockWalletDatabase(DatabaseOptions& option
if (format == DatabaseFormat::SQLITE) {
#ifdef USE_SQLITE
- return std::make_unique<SQLiteDatabase>("", "", options, true);
+ return std::make_unique<SQLiteDatabase>(":memory:", "", options, true);
#endif
assert(false);
}