mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-31 21:01:13 +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) {
|
if (format == DatabaseFormat::SQLITE) {
|
||||||
#ifdef USE_SQLITE
|
#ifdef USE_SQLITE
|
||||||
return std::make_unique<SQLiteDatabase>("", "", options, true);
|
return std::make_unique<SQLiteDatabase>(":memory:", "", options, true);
|
||||||
#endif
|
#endif
|
||||||
assert(false);
|
assert(false);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user