Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

wallet.cpp File Reference
#include <wallet/wallet.h>
#include <base58.h>
#include <checkpoints.h>
#include <chain.h>
#include <wallet/coincontrol.h>
#include <consensus/consensus.h>
#include <consensus/validation.h>
#include <fs.h>
#include <key.h>
#include <keystore.h>
#include <validation.h>
#include <net.h>
#include <policy/fees.h>
#include <policy/policy.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <script/sign.h>
#include <timedata.h>
#include <txmempool.h>
#include <util.h>
#include <utilmoneystr.h>
#include <wallet/fees.h>
#include <wallet/walletutil.h>
#include <governance/governance.h>
#include <keepass.h>
#include <privatesend/privatesend-client.h>
#include <spork.h>
#include <evo/providertx.h>
#include <llmq/quorums_instantsend.h>
#include <llmq/quorums_chainlocks.h>
#include <algorithm>
#include <assert.h>
#include <future>
#include <boost/algorithm/string/replace.hpp>
#include <boost/thread.hpp>
+ Include dependency graph for wallet.cpp:

Go to the source code of this file.

Classes

struct  CompareValueOnly
 
class  CAffectedKeysVisitor
 
struct  CompareByPriority
 

Functions

static std::vector< CWallet * > vpwallets GUARDED_BY (cs_wallets)
 
bool AddWallet (CWallet *wallet)
 
bool RemoveWallet (CWallet *wallet)
 
bool HasWallets ()
 
std::vector< CWallet * > GetWallets ()
 
CWalletGetWallet (const std::string &name)
 
static void ApproximateBestSubset (const std::vector< CInputCoin > &vValue, const CAmount &nTotalLower, const CAmount &nTargetValue, std::vector< char > &vfBest, CAmount &nBest, int iterations=1000)
 
bool less_then_denom (const COutput &out1, const COutput &out2)
 
static int64_t GetOldestKeyInPool (const std::set< int64_t > &setKeyPool, WalletBatch &batch)
 

Variables

static CCriticalSection cs_wallets
 
CFeeRate payTxFee (DEFAULT_TRANSACTION_FEE)
 Transaction fee set by the user. More...
 
unsigned int nTxConfirmTarget = DEFAULT_TX_CONFIRM_TARGET
 
bool bSpendZeroConfChange = DEFAULT_SPEND_ZEROCONF_CHANGE
 

Function Documentation

◆ AddWallet()

bool AddWallet ( CWallet wallet)

◆ GetWallet()

CWallet* GetWallet ( const std::string &  name)

Definition at line 85 of file wallet.cpp.

References cs_wallets, LOCK, and name.

Referenced by GetWalletForJSONRPCRequest().

◆ GetWallets()

◆ GUARDED_BY()

static std::vector<CWallet*> vpwallets GUARDED_BY ( cs_wallets  )
static

◆ HasWallets()

◆ RemoveWallet()

bool RemoveWallet ( CWallet wallet)

Variable Documentation

◆ bSpendZeroConfChange

bool bSpendZeroConfChange = DEFAULT_SPEND_ZEROCONF_CHANGE

◆ cs_wallets

CCriticalSection cs_wallets
static

Definition at line 50 of file wallet.cpp.

Referenced by AddWallet(), GetWallet(), GetWallets(), HasWallets(), RemoveWallet(), and CWallet::Verify().

◆ nTxConfirmTarget

◆ payTxFee

Released under the MIT license