mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-15 22:32:37 -03:00
0700b6f778
9b0f0c5
Add m_ prefix to WalletBatch::m_batch (Russell Yanofsky)398c6f0
Update walletdb comment after renaming. (Russell Yanofsky)ea23945
scripted-diff: Rename wallet database classes (Russell Yanofsky) Pull request description: Scripted diff to rename some wallet classes. Motivated by discussion in https://github.com/bitcoin/bitcoin/pull/11687#discussion_r155354119 | Current | New | | ---------------- | ------------------- | | CDBEnv | BerkeleyEnvironment | | CDB | BerkeleyBatch | | CWalletDBWrapper | WalletDatabase | | CWalletDB | WalletBatch | Berkeley\* classes are intended to contain BDB specific code, while Wallet\* classes are intended to be more backend-agnostic. Also renamed associated variables: | Current | New | | ------------------- | --------------- | | dbw | database | | pwalletdb | batch | | pwalletdbEncryption | encrypted_batch | Tree-SHA512: 372f2e24b2deb59d4792b5ed578aaf0cce51b6db41c400bef5d0c2cd7833e62ae4d4afa0f6000268d52e15b20f737c5a55f1cecf7768556a782fd8cd6fe051d9
23 lines
674 B
C++
23 lines
674 B
C++
// Copyright (c) 2016-2017 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <wallet/test/wallet_test_fixture.h>
|
|
|
|
#include <rpc/server.h>
|
|
#include <wallet/db.h>
|
|
|
|
WalletTestingSetup::WalletTestingSetup(const std::string& chainName):
|
|
TestingSetup(chainName), m_wallet("mock", WalletDatabase::CreateMock())
|
|
{
|
|
bool fFirstRun;
|
|
m_wallet.LoadWallet(fFirstRun);
|
|
RegisterValidationInterface(&m_wallet);
|
|
|
|
RegisterWalletRPCCommands(tableRPC);
|
|
}
|
|
|
|
WalletTestingSetup::~WalletTestingSetup()
|
|
{
|
|
UnregisterValidationInterface(&m_wallet);
|
|
}
|