Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions | Variables
util.h File Reference
#include <addresstype.h>
#include <wallet/db.h>
#include <memory>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  wallet::MockableCursor
 
class  wallet::MockableBatch
 
class  wallet::MockableDatabase
 A WalletDatabase whose contents and return values can be modified as needed for testing. More...
 

Namespaces

 interfaces
 
 wallet
 

Typedefs

using wallet::MockableData = std::map< SerializeData, SerializeData, std::less<> >
 

Functions

std::unique_ptr< CWallet > wallet::CreateSyncedWallet (interfaces::Chain &chain, CChain &cchain, const CKey &key)
 
std::shared_ptr< CWallet > wallet::TestLoadWallet (WalletContext &context)
 
std::shared_ptr< CWallet > wallet::TestLoadWallet (std::unique_ptr< WalletDatabase > database, WalletContext &context, uint64_t create_flags)
 
void wallet::TestUnloadWallet (std::shared_ptr< CWallet > &&wallet)
 
std::unique_ptr< WalletDatabase > wallet::DuplicateMockDatabase (WalletDatabase &database)
 
std::string wallet::getnewaddress (CWallet &w)
 Returns a new encoded destination from the wallet (hardcoded to BECH32) More...
 
CTxDestination wallet::getNewDestination (CWallet &w, OutputType output_type)
 Returns a new destination, of an specific type, from the wallet. More...
 
std::unique_ptr< WalletDatabase > wallet::CreateMockableWalletDatabase (MockableData records)
 
MockableDatabase & wallet::GetMockableDatabase (CWallet &wallet)
 

Variables

static const DatabaseFormat wallet::DATABASE_FORMATS []
 
const std::string wallet::ADDRESS_BCRT1_UNSPENDABLE = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj"