diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-04-20 13:51:53 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-05-10 11:54:02 -0400 |
commit | 49910f255f77e14fccf189353d188efac00d1445 (patch) | |
tree | 64d200fda47e056c2aaf89bf80774b39808bf64a /src/wallet | |
parent | a1080802f8d7c3d1251ec6f2be33031f568deafa (diff) |
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')
-rw-r--r-- | src/wallet/walletdb.cpp | 2 |
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); } |