BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
wallet_test_fixture.cpp
Go to the documentation of this file.
1 // Copyright (c) 2016-2018 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
6 
7 #include <rpc/server.h>
8 #include <wallet/db.h>
9 
10 WalletTestingSetup::WalletTestingSetup(const std::string& chainName):
11  TestingSetup(chainName), m_wallet("mock", WalletDatabase::CreateMock())
12 {
13  bool fFirstRun;
14  m_wallet.LoadWallet(fFirstRun);
16 
18 }
19 
21 {
23 }
An instance of this class represents one database.
Definition: db.h:104
void UnregisterValidationInterface(CValidationInterface *pwalletIn)
Unregister a wallet from core.
CRPCTable tableRPC
Definition: server.cpp:556
DBErrors LoadWallet(bool &fFirstRunRet)
Definition: wallet.cpp:3005
void RegisterWalletRPCCommands(CRPCTable &t)
Definition: rpcwallet.cpp:4039
void RegisterValidationInterface(CValidationInterface *pwalletIn)
Register a wallet to receive updates from core.
CWallet & m_wallet
Definition: wallet.cpp:54
WalletTestingSetup(const std::string &chainName=CBaseChainParams::MAIN)