Bitcoin Core  0.20.99
P2P Digital Currency
Classes | Namespaces | Typedefs | Functions | Variables
dummywallet.cpp File Reference
#include <util/system.h>
#include <walletinitinterface.h>
#include <support/allocators/secure.h>
Include dependency graph for dummywallet.cpp:

Go to the source code of this file.

Classes

class  DummyWalletInit
 

Namespaces

 interfaces
 

Typedefs

using LoadWalletFn = std::function< void(std::unique_ptr< interfaces::Wallet > wallet)>
 

Functions

fs::path GetWalletDir ()
 Get the path of the wallet directory. More...
 
std::vector< fs::path > ListWalletDir ()
 Get wallets in wallet directory. More...
 
std::vector< std::shared_ptr< CWallet > > GetWallets ()
 
std::shared_ptr< CWalletLoadWallet (interfaces::Chain &chain, const std::string &name, bilingual_str &error, std::vector< bilingual_str > &warnings)
 
WalletCreationStatus CreateWallet (interfaces::Chain &chain, const SecureString &passphrase, uint64_t wallet_creation_flags, const std::string &name, bilingual_str &error, std::vector< bilingual_str > &warnings, std::shared_ptr< CWallet > &result)
 
std::unique_ptr< interfaces::HandlerHandleLoadWallet (LoadWalletFn load_wallet)
 
std::unique_ptr< Wallet > interfaces::MakeWallet (const std::shared_ptr< CWallet > &wallet)
 Return implementation of Wallet interface. More...
 

Variables

const WalletInitInterfaceg_wallet_init_interface = DummyWalletInit()
 

Typedef Documentation

◆ LoadWalletFn

using LoadWalletFn = std::function<void(std::unique_ptr<interfaces::Wallet> wallet)>

Definition at line 86 of file dummywallet.cpp.

Function Documentation

◆ CreateWallet()

WalletCreationStatus CreateWallet ( interfaces::Chain chain,
const SecureString passphrase,
uint64_t  wallet_creation_flags,
const std::string &  name,
bilingual_str error,
std::vector< bilingual_str > &  warnings,
std::shared_ptr< CWallet > &  result 
)

Definition at line 81 of file dummywallet.cpp.

Here is the caller graph for this function:

◆ GetWalletDir()

fs::path GetWalletDir ( )

Get the path of the wallet directory.

Definition at line 61 of file dummywallet.cpp.

Here is the caller graph for this function:

◆ GetWallets()

std::vector<std::shared_ptr<CWallet> > GetWallets ( )

Definition at line 71 of file dummywallet.cpp.

Here is the caller graph for this function:

◆ HandleLoadWallet()

std::unique_ptr<interfaces::Handler> HandleLoadWallet ( LoadWalletFn  load_wallet)

Definition at line 87 of file dummywallet.cpp.

Here is the caller graph for this function:

◆ ListWalletDir()

std::vector<fs::path> ListWalletDir ( )

Get wallets in wallet directory.

Definition at line 66 of file dummywallet.cpp.

Here is the caller graph for this function:

◆ LoadWallet()

std::shared_ptr<CWallet> LoadWallet ( interfaces::Chain chain,
const std::string &  name,
bilingual_str error,
std::vector< bilingual_str > &  warnings 
)

Definition at line 76 of file dummywallet.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ g_wallet_init_interface

const WalletInitInterface& g_wallet_init_interface = DummyWalletInit()

Definition at line 59 of file dummywallet.cpp.