mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-24 04:44:42 +02:00
walletdb: Remove m_mock from SQLiteDatabase
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user