mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-02-16 18:39:18 +00: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:
parent
a1080802f8
commit
49910f255f
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user