mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-27 18:21:34 +02:00
sqlite: Use in-memory db instead of temp for mockdb
The mock db can be in-memory rather than just at temp file.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user