Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

wallet_test_fixture.cpp
Go to the documentation of this file.
1 // Copyright (c) 2016 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 #include <wallet/wallet.h>
10 
11 WalletTestingSetup::WalletTestingSetup(const std::string& chainName):
12  TestingSetup(chainName), m_wallet("mock", WalletDatabase::CreateMock())
13 {
14  bool fFirstRun;
15  m_wallet.LoadWallet(fFirstRun);
17 
19 }
20 
22 {
24 }
An instance of this class represents one database.
Definition: db.h:95
void UnregisterValidationInterface(CValidationInterface *pwalletIn)
Unregister a wallet from core.
CRPCTable tableRPC
Definition: server.cpp:616
DBErrors LoadWallet(bool &fFirstRunRet)
Definition: wallet.cpp:4160
void RegisterWalletRPCCommands(CRPCTable &t)
Definition: rpcwallet.cpp:3588
void RegisterValidationInterface(CValidationInterface *pwalletIn)
Register a wallet to receive updates from core.
WalletTestingSetup(const std::string &chainName=CBaseChainParams::MAIN)
Released under the MIT license