Skip to content

Commit 49910f2

Browse files
committed
sqlite: Use in-memory db instead of temp for mockdb
The mock db can be in-memory rather than just at temp file.
1 parent a108080 commit 49910f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/walletdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ std::unique_ptr<WalletDatabase> CreateMockWalletDatabase(DatabaseOptions& option
12031203

12041204
if (format == DatabaseFormat::SQLITE) {
12051205
#ifdef USE_SQLITE
1206-
return std::make_unique<SQLiteDatabase>("", "", options, true);
1206+
return std::make_unique<SQLiteDatabase>(":memory:", "", options, true);
12071207
#endif
12081208
assert(false);
12091209
}

0 commit comments

Comments
 (0)