walletdb: Remove m_mock from SQLiteDatabase

This commit is contained in:
Ava Chow
2025-07-24 12:21:47 -07:00
parent 59484e2fdb
commit 037ea2c714
4 changed files with 24 additions and 12 deletions

View File

@@ -14,6 +14,8 @@
#include <wallet/wallet.h>
#include <wallet/walletdb.h>
#include <sqlite3.h>
#include <memory>
namespace wallet {
@@ -136,7 +138,7 @@ CTxDestination getNewDestination(CWallet& w, OutputType output_type)
}
MockableSQLiteDatabase::MockableSQLiteDatabase()
: SQLiteDatabase(fs::PathFromString("mock/"), fs::PathFromString("mock/wallet.dat"), DatabaseOptions(), /*mock=*/true)
: SQLiteDatabase(fs::PathFromString("mock/"), fs::PathFromString("mock/wallet.dat"), DatabaseOptions(), SQLITE_OPEN_MEMORY)
{}
std::unique_ptr<WalletDatabase> CreateMockableWalletDatabase()