Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Classes | |
struct | CompareByPriority |
Functions | |
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) |
std::unordered_set< const CWalletTx *, WalletTxHasher > | CWallet::GetSpendableTXs () const |
CAmount | CWallet::GetBalance () const |
CAmount | CWallet::GetAnonymizableBalance (bool fSkipDenominated=false, bool fSkipUnconfirmed=true) const |
CAmount | CWallet::GetAnonymizedBalance (const CCoinControl *coinControl=nullptr) const |
float | CWallet::GetAverageAnonymizedRounds () const |
CAmount | CWallet::GetNormalizedAnonymizedBalance () const |
CAmount | CWallet::GetDenominatedBalance (bool unconfirmed=false) const |
CAmount | CWallet::GetUnconfirmedBalance () const |
CAmount | CWallet::GetImmatureBalance () const |
CAmount | CWallet::GetWatchOnlyBalance () const |
CAmount | CWallet::GetUnconfirmedWatchOnlyBalance () const |
CAmount | CWallet::GetImmatureWatchOnlyBalance () const |
CAmount | CWallet::GetLegacyBalance (const isminefilter &filter, int minDepth, const std::string *account, const bool fAddLocked) const |
CAmount | CWallet::GetAvailableBalance (const CCoinControl *coinControl=nullptr) const |
void | CWallet::AvailableCoins (std::vector< COutput > &vCoins, bool fOnlySafe=true, const CCoinControl *coinControl=nullptr, const CAmount &nMinimumAmount=1, const CAmount &nMaximumAmount=MAX_MONEY, const CAmount &nMinimumSumAmount=MAX_MONEY, const uint64_t nMaximumCount=0, const int nMinDepth=0, const int nMaxDepth=9999999) const |
populate vCoins with vector of available COutputs. More... | |
std::map< CTxDestination, std::vector< COutput > > | CWallet::ListCoins () const |
Return list of available coins and locked coins grouped by non-change output address. More... | |
const CTxOut & | CWallet::FindNonChangeParentOutput (const CTransaction &tx, int output) const |
Find non-change parent output. More... | |
void | CWallet::InitPrivateSendSalt () |
Fetches PrivateSend salt from database or generates and saves a new one if no salt was found in the db. More... | |
bool | CWallet::SelectCoinsMinConf (const CAmount &nTargetValue, int nConfMine, int nConfTheirs, uint64_t nMaxAncestors, std::vector< COutput > vCoins, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet, CoinType nCoinType=CoinType::ALL_COINS) const |
Shuffle and select coins until nTargetValue is reached while avoiding small change; This method is stochastic for some inputs and upon completion the coin set and corresponding actual target value is assembled. More... | |
bool | CWallet::SelectCoins (const std::vector< COutput > &vAvailableCoins, const CAmount &nTargetValue, std::set< CInputCoin > &setCoinsRet, CAmount &nValueRet, const CCoinControl *coinControl=nullptr) const |
Select a set of coins such that nValueRet >= nTargetValue and at least all coins from coinControl are selected; Never select unconfirmed coins if they are not ours. More... | |
bool | CWallet::FundTransaction (CMutableTransaction &tx, CAmount &nFeeRet, int &nChangePosInOut, std::string &strFailReason, bool lockUnspents, const std::set< int > &setSubtractFeeFromOutputs, CCoinControl) |
Insert additional inputs into the transaction by calling CreateTransaction();. More... | |
bool | CWallet::SelectPSInOutPairsByDenominations (int nDenom, CAmount nValueMax, std::vector< std::pair< CTxDSIn, CTxOut > > &vecPSInOutPairsRet) |
bool | CWallet::SelectCoinsGroupedByAddresses (std::vector< CompactTallyItem > &vecTallyRet, bool fSkipDenominated=true, bool fAnonymizable=true, bool fSkipUnconfirmed=true, int nMaxOupointsPerAddress=-1) const |
bool | CWallet::SelectDenominatedAmounts (CAmount nValueMax, std::set< CAmount > &setAmountsRet) const |
bool | CWallet::GetCollateralTxDSIn (CTxDSIn &txdsinRet, CAmount &nValueRet) const |
bool | CWallet::GetMasternodeOutpointAndKeys (COutPoint &outpointRet, CPubKey &pubKeyRet, CKey &keyRet, const std::string &strTxHash="", const std::string &strOutputIndex="") |
Get 1000DASH output and keys which can be used for the Masternode. More... | |
bool | CWallet::GetOutpointAndKeysFromOutput (const COutput &out, COutPoint &outpointRet, CPubKey &pubKeyRet, CKey &keyRet) |
Extract txin information and keys from output. More... | |
int | CWallet::CountInputsWithAmount (CAmount nInputAmount) const |
bool | CWallet::HasCollateralInputs (bool fOnlyConfirmed=true) const |
bool | CWallet::CreateCollateralTransaction (CMutableTransaction &txCollateral, std::string &strReason) |
bool | CWallet::GetBudgetSystemCollateralTX (CWalletTx &tx, uint256 hash, CAmount amount, const COutPoint &outpoint=COutPoint()) |
bool | CWallet::CreateTransaction (const std::vector< CRecipient > &vecSend, CWalletTx &wtxNew, CReserveKey &reservekey, CAmount &nFeeRet, int &nChangePosInOut, std::string &strFailReason, const CCoinControl &coin_control, bool sign=true, int nExtraPayloadSize=0) |
Create a new transaction paying the recipients with a set of coins selected by SelectCoins(); Also create the change output, when needed. More... | |
bool | CWallet::CommitTransaction (CWalletTx &wtxNew, CReserveKey &reservekey, CConnman *connman, CValidationState &state) |
Call after CreateTransaction unless you want to abort. More... | |
void | CWallet::ListAccountCreditDebit (const std::string &strAccount, std::list< CAccountingEntry > &entries) |
bool | CWallet::AddAccountingEntry (const CAccountingEntry &) |
bool | CWallet::AddAccountingEntry (const CAccountingEntry &, WalletBatch *batch) |
DBErrors | CWallet::LoadWallet (bool &fFirstRunRet) |
void | CWallet::AutoLockMasternodeCollaterals () |
DBErrors | CWallet::ZapSelectTx (std::vector< uint256 > &vHashIn, std::vector< uint256 > &vHashOut) |
DBErrors | CWallet::ZapWalletTx (std::vector< CWalletTx > &vWtx) |
bool | CWallet::SetAddressBook (const CTxDestination &address, const std::string &strName, const std::string &purpose) |
bool | CWallet::DelAddressBook (const CTxDestination &address) |
const std::string & | CWallet::GetAccountName (const CScript &scriptPubKey) const |
bool | CWallet::NewKeyPool () |
Mark old keypool keys as used, and generate all new keys. More... | |
size_t | CWallet::KeypoolCountExternalKeys () |
void | CWallet::LoadKeyPool (int64_t nIndex, const CKeyPool &keypool) |
size_t | CWallet::KeypoolCountInternalKeys () |
bool | CWallet::TopUpKeyPool (unsigned int kpSize=0) |
void | CWallet::ReserveKeyFromKeyPool (int64_t &nIndex, CKeyPool &keypool, bool fInternal) |
void | CWallet::KeepKey (int64_t nIndex) |
void | CWallet::ReturnKey (int64_t nIndex, bool fInternal, const CPubKey &pubkey) |
bool | CWallet::GetKeyFromPool (CPubKey &key, bool fInternal) |
int64_t | CWallet::GetOldestKeyPoolTime () |
std::map< CTxDestination, CAmount > | CWallet::GetAddressBalances () |
std::set< std::set< CTxDestination > > | CWallet::GetAddressGroupings () |
std::set< CTxDestination > | CWallet::GetAccountAddresses (const std::string &strAccount) const |
bool | CReserveKey::GetReservedKey (CPubKey &pubkey, bool fInternalIn) |
void | CReserveKey::KeepKey () |
void | CReserveKey::ReturnKey () |
void | CWallet::MarkReserveKeysAsUsed (int64_t keypool_id) |
Marks all keys in the keypool up to and including reserve_key as used. More... | |
void | CWallet::GetScriptForMining (std::shared_ptr< CReserveScript > &script) |
void | CWallet::LockCoin (const COutPoint &output) |
void | CWallet::UnlockCoin (const COutPoint &output) |
void | CWallet::UnlockAllCoins () |
bool | CWallet::IsLockedCoin (uint256 hash, unsigned int n) const |
void | CWallet::ListLockedCoins (std::vector< COutPoint > &vOutpts) const |
void | CWallet::ListProTxCoins (std::vector< COutPoint > &vOutpts) |
Detailed Description
Function Documentation
◆ AddAccountingEntry() [1/2]
bool CWallet::AddAccountingEntry | ( | const CAccountingEntry & | acentry | ) |
Definition at line 4140 of file wallet.cpp.
References CWallet::database.
Referenced by CWallet::AccountMove().
◆ AddAccountingEntry() [2/2]
bool CWallet::AddAccountingEntry | ( | const CAccountingEntry & | acentry, |
WalletBatch * | batch | ||
) |
Definition at line 4147 of file wallet.cpp.
References CWallet::laccentries, CWallet::nAccountingEntryNumber, CAccountingEntry::nOrderPos, WalletBatch::WriteAccountingEntry(), and CWallet::wtxOrdered.
◆ ApproximateBestSubset()
|
static |
Definition at line 2949 of file wallet.cpp.
References FastRandomContext::randbool().
Referenced by CWallet::SelectCoinsMinConf().
◆ AutoLockMasternodeCollaterals()
void CWallet::AutoLockMasternodeCollaterals | ( | ) |
Definition at line 4204 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, deterministicMNManager, CWallet::IsMine(), CWallet::IsSpent(), LOCK2, CWallet::LockCoin(), and CWallet::mapWallet.
◆ AvailableCoins()
void CWallet::AvailableCoins | ( | std::vector< COutput > & | vCoins, |
bool | fOnlySafe = true , |
||
const CCoinControl * | coinControl = nullptr , |
||
const CAmount & | nMinimumAmount = 1 , |
||
const CAmount & | nMaximumAmount = MAX_MONEY , |
||
const CAmount & | nMinimumSumAmount = MAX_MONEY , |
||
const uint64_t | nMaximumCount = 0 , |
||
const int | nMinDepth = 0 , |
||
const int | nMaxDepth = 9999999 |
||
) | const |
populate vCoins with vector of available COutputs.
Definition at line 2775 of file wallet.cpp.
References ALL_COINS, CheckFinalTx(), COIN, cs_main, CWallet::cs_wallet, CCoinControl::fAllowOtherInputs, CCoinControl::fAllowWatchOnly, CWallet::GetSpendableTXs(), CCoinControl::HasSelected(), CPrivateSend::IsCollateralAmount(), CPrivateSend::IsDenominatedAmount(), CWallet::IsFullyMixed(), CWallet::IsLockedCoin(), CWallet::IsMine(), ISMINE_NO, ISMINE_SPENDABLE, ISMINE_WATCH_SOLVABLE, CCoinControl::IsSelected(), CWallet::IsSpent(), LOCK2, MAX_MONEY, CCoinControl::nCoinType, ONLY_FULLY_MIXED, ONLY_MASTERNODE_COLLATERAL, ONLY_NONDENOMINATED, ONLY_PRIVATESEND_COLLATERAL, ONLY_READY_TO_MIX, and vCoins.
Referenced by CWallet::CreateTransaction(), CWallet::GetAvailableBalance(), CWallet::GetCollateralTxDSIn(), CWallet::GetMasternodeOutpointAndKeys(), CWallet::HasCollateralInputs(), CWallet::ListCoins(), listunspent(), CWallet::SelectDenominatedAmounts(), and CWallet::SelectPSInOutPairsByDenominations().
◆ CommitTransaction()
bool CWallet::CommitTransaction | ( | CWalletTx & | wtxNew, |
CReserveKey & | reservekey, | ||
CConnman * | connman, | ||
CValidationState & | state | ||
) |
Call after CreateTransaction unless you want to abort.
Definition at line 4089 of file wallet.cpp.
References CWalletTx::AcceptToMemoryPool(), CWallet::AddToWallet(), CWalletTx::BindWallet(), CTxMemPool::cs, cs_main, CWallet::cs_wallet, CT_UPDATED, CWallet::fBroadcastTransactions, CMerkleTx::GetHash(), CValidationState::GetRejectReason(), COutPoint::hash, CReserveKey::KeepKey(), LOCK, LOCK2, LogPrintf, CWallet::mapWallet, maxTxFee, mempool, CWallet::NotifyTransactionChanged, CTxIn::prevout, CWalletTx::RelayWalletTransaction(), and CMerkleTx::tx.
Referenced by CTransactionBuilder::Commit(), WalletModel::sendCoins(), sendmany(), and SendMoney().
◆ CountInputsWithAmount()
int CWallet::CountInputsWithAmount | ( | CAmount | nInputAmount | ) | const |
Definition at line 3559 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, LOCK2, CWallet::mapWallet, and CWallet::setWalletUTXO.
◆ CreateCollateralTransaction()
bool CWallet::CreateCollateralTransaction | ( | CMutableTransaction & | txCollateral, |
std::string & | strReason | ||
) |
Definition at line 3587 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CPrivateSend::GetCollateralAmount(), CWallet::GetCollateralTxDSIn(), CPubKey::GetID(), CReserveKey::GetReservedKey(), GetScriptForDestination(), CReserveKey::KeepKey(), LOCK2, OP_RETURN, CTxDSIn::prevPubKey, SIGHASH_ALL, SignSignature(), CMutableTransaction::vin, and CMutableTransaction::vout.
◆ CreateTransaction()
bool CWallet::CreateTransaction | ( | const std::vector< CRecipient > & | vecSend, |
CWalletTx & | wtxNew, | ||
CReserveKey & | reservekey, | ||
CAmount & | nFeeRet, | ||
int & | nChangePosInOut, | ||
std::string & | strFailReason, | ||
const CCoinControl & | coin_control, | ||
bool | sign = true , |
||
int | nExtraPayloadSize = 0 |
||
) |
Create a new transaction paying the recipients with a set of coins selected by SelectCoins(); Also create the change output, when needed.
- Note
- passing nChangePosInOut as -1 will result in setting a random position
Definition at line 3658 of file wallet.cpp.
References _(), CWallet::AvailableCoins(), CWalletTx::BindWallet(), CTxMemPool::CalculateMemPoolAncestors(), chainActive, CTxMemPool::cs, cs_main, CWallet::cs_wallet, EstimationResult::decay, DEFAULT_ANCESTOR_LIMIT, DEFAULT_ANCESTOR_SIZE_LIMIT, DEFAULT_DESCENDANT_LIMIT, DEFAULT_DESCENDANT_SIZE_LIMIT, DEFAULT_WALLET_REJECT_LONG_CHAINS, FeeCalculation::desiredTarget, CCoinControl::destChange, dustRelayFee, EstimatorBucket::end, FeeCalculation::est, EstimationResult::fail, feeEstimator, CWalletTx::fFromMe, CWalletTx::fTimeReceivedIsTxTime, gArgs, ArgsManager::GetArg(), ArgsManager::GetBoolArg(), GetDiscardRate(), CFeeRate::GetFee(), CPubKey::GetID(), GetMinimumFee(), GetRandInt(), CReserveKey::GetReservedKey(), GetScriptForDestination(), GetSerializeSize(), GetSizeOfCompactSize(), CChain::Height(), EstimatorBucket::inMempool, IsDust(), EstimatorBucket::leftMempool, LOCK, LOCK2, LOCKTIME_THRESHOLD, LogPrintf, CCoinControl::m_discard_feerate, MakeTransactionRef(), CWalletTx::mapValue, MAX_STANDARD_TX_SIZE, mempool, minRelayTxFee, CCoinControl::nCoinType, CMutableTransaction::nLockTime, CTxOut::nValue, ONLY_FULLY_MIXED, ONLY_NONDENOMINATED, EstimationResult::pass, ProduceSignature(), PROTOCOL_VERSION, FeeCalculation::reason, FeeCalculation::returnedTarget, CReserveKey::ReturnKey(), CWallet::SelectCoins(), CTxIn::SEQUENCE_FINAL, SER_NETWORK, CMerkleTx::SetTx(), SIGHASH_ALL, EstimatorBucket::start, StringForFeeReason(), EstimatorBucket::totalConfirmed, CMerkleTx::tx, UpdateTransaction(), CMutableTransaction::vin, CMutableTransaction::vout, and EstimatorBucket::withinTarget.
Referenced by CTransactionBuilder::Commit(), CWallet::FundTransaction(), CWallet::GetBudgetSystemCollateralTX(), WalletModel::prepareTransaction(), sendmany(), and SendMoney().
◆ DelAddressBook()
bool CWallet::DelAddressBook | ( | const CTxDestination & | address | ) |
Definition at line 4295 of file wallet.cpp.
References CWallet::cs_wallet, CT_DELETED, EncodeDestination(), WalletBatch::EraseDestData(), WalletBatch::EraseName(), WalletBatch::ErasePurpose(), CWallet::IsMine(), ISMINE_NO, LOCK, CWallet::mapAddressBook, and CWallet::NotifyAddressBookChanged.
Referenced by AddressTableModel::removeRows(), and AddressTableModel::setData().
◆ FindNonChangeParentOutput()
const CTxOut & CWallet::FindNonChangeParentOutput | ( | const CTransaction & | tx, |
int | output | ||
) | const |
Find non-change parent output.
Definition at line 2917 of file wallet.cpp.
References COutPoint::hash, CWallet::IsChange(), CWallet::IsMine(), CWallet::mapWallet, COutPoint::n, CTransaction::vin, and CTransaction::vout.
Referenced by CWallet::ListCoins().
◆ FundTransaction()
bool CWallet::FundTransaction | ( | CMutableTransaction & | tx, |
CAmount & | nFeeRet, | ||
int & | nChangePosInOut, | ||
std::string & | strFailReason, | ||
bool | lockUnspents, | ||
const std::set< int > & | setSubtractFeeFromOutputs, | ||
CCoinControl | coinControl | ||
) |
Insert additional inputs into the transaction by calling CreateTransaction();.
Definition at line 3252 of file wallet.cpp.
References CWallet::CreateTransaction(), CTxMemPool::cs, cs_main, CWallet::cs_wallet, CCoinControl::fAllowOtherInputs, CCoinControl::IsSelected(), CReserveKey::KeepKey(), LOCK, LOCK2, CWallet::LockCoin(), mempool, CMutableTransaction::nType, CTxOut::nValue, CMutableTransaction::nVersion, CTxIn::prevout, CTxOut::scriptPubKey, CCoinControl::Select(), TRANSACTION_NORMAL, CMerkleTx::tx, CMutableTransaction::vExtraPayload, CMutableTransaction::vin, and CMutableTransaction::vout.
Referenced by fundrawtransaction().
◆ GetAccountAddresses()
std::set< CTxDestination > CWallet::GetAccountAddresses | ( | const std::string & | strAccount | ) | const |
Definition at line 4707 of file wallet.cpp.
References CWallet::cs_wallet, LOCK, and CWallet::mapAddressBook.
Referenced by PaymentServer::fetchPaymentACK(), and getreceivedbyaccount().
◆ GetAccountName()
const std::string & CWallet::GetAccountName | ( | const CScript & | scriptPubKey | ) | const |
Definition at line 4315 of file wallet.cpp.
References ExtractDestination(), CScript::IsUnspendable(), and CWallet::mapAddressBook.
Referenced by CWallet::GetLegacyBalance().
◆ GetAddressBalances()
std::map< CTxDestination, CAmount > CWallet::GetAddressBalances | ( | ) |
Definition at line 4574 of file wallet.cpp.
References CWallet::cs_wallet, ExtractDestination(), CMerkleTx::GetBlocksToMaturity(), CMerkleTx::GetDepthInMainChain(), CMerkleTx::IsCoinBase(), CWalletTx::IsFromMe(), CMerkleTx::IsLockedByInstantSend(), CWallet::IsMine(), ISMINE_ALL, CWallet::IsSpent(), CWalletTx::IsTrusted(), LOCK, CWallet::mapWallet, and CMerkleTx::tx.
Referenced by listaddressbalances(), and listaddressgroupings().
◆ GetAddressGroupings()
std::set< std::set< CTxDestination > > CWallet::GetAddressGroupings | ( | ) |
Definition at line 4614 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, ExtractDestination(), COutPoint::hash, CWallet::IsChange(), CWallet::IsMine(), CWallet::mapWallet, COutPoint::n, CTxIn::prevout, CTxOut::scriptPubKey, and CMerkleTx::tx.
Referenced by listaddressgroupings().
◆ GetAnonymizableBalance()
CAmount CWallet::GetAnonymizableBalance | ( | bool | fSkipDenominated = false , |
bool | fSkipUnconfirmed = true |
||
) | const |
Definition at line 2555 of file wallet.cpp.
References CPrivateSendClientManager::fEnablePrivateSend, CPrivateSend::GetCollateralAmount(), CPrivateSend::GetSmallestDenomination(), CPrivateSend::IsDenominatedAmount(), privateSendClient, and CWallet::SelectCoinsGroupedByAddresses().
Referenced by WalletModel::getAnonymizableBalance().
◆ GetAnonymizedBalance()
CAmount CWallet::GetAnonymizedBalance | ( | const CCoinControl * | coinControl = nullptr | ) | const |
Definition at line 2577 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CPrivateSendClientManager::fEnablePrivateSend, CWallet::GetSpendableTXs(), LOCK2, and privateSendClient.
Referenced by WalletModel::getAnonymizedBalance(), and getwalletinfo().
◆ GetAvailableBalance()
CAmount CWallet::GetAvailableBalance | ( | const CCoinControl * | coinControl = nullptr | ) | const |
Definition at line 2760 of file wallet.cpp.
References CWallet::AvailableCoins(), cs_main, CWallet::cs_wallet, LOCK2, and vCoins.
Referenced by WalletModel::getBalance().
◆ GetAverageAnonymizedRounds()
float CWallet::GetAverageAnonymizedRounds | ( | ) | const |
Definition at line 2594 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CPrivateSendClientManager::fEnablePrivateSend, CWallet::GetCappedOutpointPrivateSendRounds(), CWallet::IsDenominated(), LOCK2, privateSendClient, and CWallet::setWalletUTXO.
Referenced by WalletModel::getAverageAnonymizedRounds().
◆ GetBalance()
CAmount CWallet::GetBalance | ( | ) | const |
Definition at line 2541 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::GetSpendableTXs(), and LOCK2.
Referenced by WalletModel::getBalance(), getbalance(), getwalletinfo(), and SendMoney().
◆ GetBudgetSystemCollateralTX()
bool CWallet::GetBudgetSystemCollateralTX | ( | CWalletTx & | tx, |
uint256 | hash, | ||
CAmount | amount, | ||
const COutPoint & | outpoint = COutPoint() |
||
) |
Definition at line 3631 of file wallet.cpp.
References CWallet::CreateTransaction(), COutPoint::IsNull(), LogPrintf, OP_RETURN, CCoinControl::Select(), and ToByteVector().
◆ GetCollateralTxDSIn()
Definition at line 3481 of file wallet.cpp.
References CWallet::AvailableCoins(), cs_main, CWallet::cs_wallet, GetRandInt(), LOCK2, CCoinControl::nCoinType, ONLY_PRIVATESEND_COLLATERAL, and vCoins.
Referenced by CWallet::CreateCollateralTransaction().
◆ GetDenominatedBalance()
Definition at line 2638 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CPrivateSendClientManager::fEnablePrivateSend, CWallet::GetSpendableTXs(), LOCK2, and privateSendClient.
Referenced by WalletModel::getDenominatedBalance().
◆ GetImmatureBalance()
CAmount CWallet::GetImmatureBalance | ( | ) | const |
Definition at line 2666 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::GetSpendableTXs(), and LOCK2.
Referenced by BOOST_FIXTURE_TEST_CASE(), WalletModel::getImmatureBalance(), and getwalletinfo().
◆ GetImmatureWatchOnlyBalance()
CAmount CWallet::GetImmatureWatchOnlyBalance | ( | ) | const |
Definition at line 2705 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::GetSpendableTXs(), and LOCK2.
Referenced by WalletModel::getWatchImmatureBalance().
◆ GetKeyFromPool()
bool CWallet::GetKeyFromPool | ( | CPubKey & | key, |
bool | fInternal | ||
) |
Definition at line 4521 of file wallet.cpp.
References CWallet::cs_wallet, CWallet::database, CWallet::GenerateNewKey(), CCryptoKeyStore::IsLocked(), CWallet::KeepKey(), LOCK, CWallet::ReserveKeyFromKeyPool(), and CKeyPool::vchPubKey.
Referenced by AddressTableModel::addRow(), PaymentServer::fetchPaymentACK(), CWallet::GetAccountDestination(), and getnewaddress().
◆ GetLegacyBalance()
CAmount CWallet::GetLegacyBalance | ( | const isminefilter & | filter, |
int | minDepth, | ||
const std::string * | account, | ||
const bool | fAddLocked | ||
) | const |
Definition at line 2723 of file wallet.cpp.
References CheckFinalTx(), cs_main, CWallet::cs_wallet, WalletBatch::GetAccountCreditDebit(), CWallet::GetAccountName(), CMerkleTx::GetBlocksToMaturity(), CWalletTx::GetDebit(), CMerkleTx::GetDepthInMainChain(), CWallet::IsChange(), CMerkleTx::IsLockedByInstantSend(), CWallet::IsMine(), LOCK2, CWallet::mapWallet, CTxOut::nValue, CTxOut::scriptPubKey, CWalletTx::strFromAccount, and CMerkleTx::tx.
Referenced by getbalance(), sendfrom(), and sendmany().
◆ GetMasternodeOutpointAndKeys()
bool CWallet::GetMasternodeOutpointAndKeys | ( | COutPoint & | outpointRet, |
CPubKey & | pubKeyRet, | ||
CKey & | keyRet, | ||
const std::string & | strTxHash = "" , |
||
const std::string & | strOutputIndex = "" |
||
) |
Get 1000DASH output and keys which can be used for the Masternode.
Definition at line 3501 of file wallet.cpp.
References atoi(), CWallet::AvailableCoins(), fImporting, fReindex, CWallet::GetOutpointAndKeysFromOutput(), LogPrintf, CCoinControl::nCoinType, ONLY_MASTERNODE_COLLATERAL, and uint256S().
◆ GetNormalizedAnonymizedBalance()
CAmount CWallet::GetNormalizedAnonymizedBalance | ( | ) | const |
Definition at line 2616 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CPrivateSendClientManager::fEnablePrivateSend, CWallet::GetCappedOutpointPrivateSendRounds(), CPrivateSend::IsDenominatedAmount(), LOCK2, CWallet::mapWallet, CPrivateSendClientManager::nPrivateSendRounds, privateSendClient, and CWallet::setWalletUTXO.
Referenced by WalletModel::getNormalizedAnonymizedBalance().
◆ GetOldestKeyInPool()
|
static |
Definition at line 4543 of file wallet.cpp.
References CPubKey::IsValid(), CKeyPool::nTime, WalletBatch::ReadPool(), and CKeyPool::vchPubKey.
Referenced by CWallet::GetOldestKeyPoolTime().
◆ GetOldestKeyPoolTime()
int64_t CWallet::GetOldestKeyPoolTime | ( | ) |
Definition at line 4553 of file wallet.cpp.
References CWallet::cs_wallet, CWallet::database, GetOldestKeyInPool(), GetTime(), LOCK, CWallet::setExternalKeyPool, and CWallet::setInternalKeyPool.
Referenced by getwalletinfo().
◆ GetOutpointAndKeysFromOutput()
bool CWallet::GetOutpointAndKeysFromOutput | ( | const COutput & | out, |
COutPoint & | outpointRet, | ||
CPubKey & | pubKeyRet, | ||
CKey & | keyRet | ||
) |
Extract txin information and keys from output.
Definition at line 3531 of file wallet.cpp.
References ExtractDestination(), fImporting, fReindex, CMerkleTx::GetHash(), CWallet::GetKey(), CKey::GetPubKey(), COutput::i, LogPrintf, CMerkleTx::tx, and COutput::tx.
Referenced by CWallet::GetMasternodeOutpointAndKeys().
◆ GetReservedKey()
bool CReserveKey::GetReservedKey | ( | CPubKey & | pubkey, |
bool | fInternalIn | ||
) |
Definition at line 4721 of file wallet.cpp.
References CKeyPool::fInternal, CReserveKey::fInternal, CPubKey::IsValid(), CReserveKey::nIndex, CReserveKey::pwallet, CWallet::ReserveKeyFromKeyPool(), CKeyPool::vchPubKey, and CReserveKey::vchPubKey.
Referenced by CKeyHolder::CKeyHolder(), CWallet::CreateCollateralTransaction(), CWallet::CreateTransaction(), CTransactionBuilderOutput::CTransactionBuilderOutput(), and getrawchangeaddress().
◆ GetScriptForMining()
void CWallet::GetScriptForMining | ( | std::shared_ptr< CReserveScript > & | script | ) |
Definition at line 4781 of file wallet.cpp.
References OP_CHECKSIG, and ToByteVector().
◆ GetSpendableTXs()
|
private |
Definition at line 2520 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, CWallet::mapWallet, and CWallet::setWalletUTXO.
Referenced by CWallet::AvailableCoins(), CWallet::GetAnonymizedBalance(), CWallet::GetBalance(), CWallet::GetDenominatedBalance(), CWallet::GetImmatureBalance(), CWallet::GetImmatureWatchOnlyBalance(), CWallet::GetUnconfirmedBalance(), CWallet::GetUnconfirmedWatchOnlyBalance(), and CWallet::GetWatchOnlyBalance().
◆ GetUnconfirmedBalance()
CAmount CWallet::GetUnconfirmedBalance | ( | ) | const |
Definition at line 2653 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::GetSpendableTXs(), and LOCK2.
Referenced by WalletModel::getUnconfirmedBalance(), getunconfirmedbalance(), and getwalletinfo().
◆ GetUnconfirmedWatchOnlyBalance()
CAmount CWallet::GetUnconfirmedWatchOnlyBalance | ( | ) | const |
Definition at line 2692 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::GetSpendableTXs(), and LOCK2.
Referenced by WalletModel::getWatchUnconfirmedBalance().
◆ GetWatchOnlyBalance()
CAmount CWallet::GetWatchOnlyBalance | ( | ) | const |
Definition at line 2678 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::GetSpendableTXs(), and LOCK2.
Referenced by WalletModel::getWatchBalance().
◆ HasCollateralInputs()
bool CWallet::HasCollateralInputs | ( | bool | fOnlyConfirmed = true | ) | const |
Definition at line 3577 of file wallet.cpp.
References CWallet::AvailableCoins(), CCoinControl::nCoinType, ONLY_PRIVATESEND_COLLATERAL, and vCoins.
◆ InitPrivateSendSalt()
|
private |
Fetches PrivateSend salt from database or generates and saves a new one if no salt was found in the db.
Definition at line 2934 of file wallet.cpp.
References CWallet::database, GetRandHash(), base_blob< BITS >::IsNull(), and CWallet::nPrivateSendSalt.
Referenced by CWallet::LoadWallet().
◆ IsLockedCoin()
bool CWallet::IsLockedCoin | ( | uint256 | hash, |
unsigned int | n | ||
) | const |
Definition at line 4820 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, and CWallet::setLockedCoins.
Referenced by CWallet::AvailableCoins(), WalletModel::isLockedCoin(), lockunspent(), and CWallet::SelectCoinsGroupedByAddresses().
◆ KeepKey() [1/2]
void CWallet::KeepKey | ( | int64_t | nIndex | ) |
Definition at line 4495 of file wallet.cpp.
References CWallet::database, WalletBatch::ErasePool(), LogPrintf, CWallet::nKeysLeftSinceAutoBackup, and nWalletBackups.
Referenced by CWallet::GetKeyFromPool(), and CReserveKey::KeepKey().
◆ KeepKey() [2/2]
void CReserveKey::KeepKey | ( | ) |
Definition at line 4740 of file wallet.cpp.
References CWallet::KeepKey(), CReserveKey::nIndex, CReserveKey::pwallet, and CReserveKey::vchPubKey.
Referenced by CWallet::CommitTransaction(), CWallet::CreateCollateralTransaction(), CWallet::FundTransaction(), getrawchangeaddress(), CKeyHolder::KeepKey(), CTransactionBuilderOutput::KeepKey(), and CReserveKey::KeepScript().
◆ KeypoolCountExternalKeys()
size_t CWallet::KeypoolCountExternalKeys | ( | ) |
Definition at line 4360 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, and CWallet::setExternalKeyPool.
Referenced by CWallet::AutoBackupWallet(), getwalletinfo(), and WalletBatch::LoadWallet().
◆ KeypoolCountInternalKeys()
size_t CWallet::KeypoolCountInternalKeys | ( | ) |
Definition at line 4385 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, and CWallet::setInternalKeyPool.
Referenced by getwalletinfo().
◆ less_then_denom()
Definition at line 3010 of file wallet.cpp.
References CPrivateSend::GetStandardDenominations(), COutput::i, CMerkleTx::tx, and COutput::tx.
Referenced by CWallet::SelectCoinsMinConf().
◆ ListAccountCreditDebit()
void CWallet::ListAccountCreditDebit | ( | const std::string & | strAccount, |
std::list< CAccountingEntry > & | entries | ||
) |
Definition at line 4135 of file wallet.cpp.
References CWallet::database, and WalletBatch::ListAccountCreditDebit().
Referenced by GetResults().
◆ ListCoins()
std::map< CTxDestination, std::vector< COutput > > CWallet::ListCoins | ( | ) | const |
Return list of available coins and locked coins grouped by non-change output address.
Definition at line 2871 of file wallet.cpp.
References CWallet::AvailableCoins(), cs_main, CWallet::cs_wallet, ExtractDestination(), CWallet::FindNonChangeParentOutput(), CWallet::IsMine(), ISMINE_SPENDABLE, CWallet::ListLockedCoins(), LOCK2, CWallet::mapWallet, and CTxOut::scriptPubKey.
Referenced by WalletModel::listCoins().
◆ ListLockedCoins()
void CWallet::ListLockedCoins | ( | std::vector< COutPoint > & | vOutpts | ) | const |
Definition at line 4828 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, and CWallet::setLockedCoins.
Referenced by CWallet::ListCoins(), WalletModel::listLockedCoins(), and listlockunspent().
◆ ListProTxCoins()
void CWallet::ListProTxCoins | ( | std::vector< COutPoint > & | vOutpts | ) |
Definition at line 4838 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, deterministicMNManager, CWallet::mapWallet, and CWallet::setWalletUTXO.
Referenced by WalletModel::listProTxCoins(), and protx_list().
◆ LoadKeyPool()
void CWallet::LoadKeyPool | ( | int64_t | nIndex, |
const CKeyPool & | keypool | ||
) |
Definition at line 4366 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, CKeyPool::fInternal, CPubKey::GetID(), CWallet::m_max_keypool_index, CWallet::m_pool_key_to_index, CWallet::mapKeyMetadata, CKeyPool::nTime, CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, and CKeyPool::vchPubKey.
Referenced by ReadKeyValue().
◆ LoadWallet()
DBErrors CWallet::LoadWallet | ( | bool & | fFirstRunRet | ) |
Definition at line 4160 of file wallet.cpp.
References cs_main, CWallet::cs_wallet, CWallet::database, DB_LOAD_OK, DB_NEED_REWRITE, CWallet::InitPrivateSendSalt(), CWallet::IsMine(), CWallet::IsSpent(), WalletBatch::LoadWallet(), LOCK2, CWallet::m_pool_key_to_index, CCryptoKeyStore::mapCryptedKeys, CWallet::mapHdPubKeys, CBasicKeyStore::mapKeys, CBasicKeyStore::mapScripts, CWallet::mapWallet, CBasicKeyStore::mapWatchKeys, CWallet::nKeysLeftSinceAutoBackup, CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, CWallet::setWalletUTXO, and CBasicKeyStore::setWatchOnly.
Referenced by CWallet::CreateWalletFromFile(), and WalletTestingSetup::WalletTestingSetup().
◆ LockCoin()
void CWallet::LockCoin | ( | const COutPoint & | output | ) |
Definition at line 4792 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, CWallet::fAnonymizableTallyCached, CWallet::fAnonymizableTallyCachedNonDenom, COutPoint::hash, CWallet::mapWallet, and CWallet::setLockedCoins.
Referenced by CWallet::AddToWallet(), CWallet::AutoLockMasternodeCollaterals(), CWallet::FundTransaction(), WalletModel::lockCoin(), and lockunspent().
◆ MarkReserveKeysAsUsed()
void CWallet::MarkReserveKeysAsUsed | ( | int64_t | keypool_id | ) |
Marks all keys in the keypool up to and including reserve_key as used.
Definition at line 4758 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, CWallet::database, WalletBatch::ErasePool(), CPubKey::GetID(), LogPrintf, CWallet::m_pool_key_to_index, WalletBatch::ReadPool(), CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, and CKeyPool::vchPubKey.
Referenced by CWallet::AddToWalletIfInvolvingMe().
◆ NewKeyPool()
bool CWallet::NewKeyPool | ( | ) |
Mark old keypool keys as used, and generate all new keys.
Definition at line 4334 of file wallet.cpp.
References CWallet::cs_wallet, CWallet::database, WalletBatch::ErasePool(), CPrivateSendClientManager::fPrivateSendRunning, LOCK, LogPrintf, CWallet::m_pool_key_to_index, CWallet::nKeysLeftSinceAutoBackup, privateSendClient, CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, and CWallet::TopUpKeyPool().
Referenced by CWallet::EncryptWallet().
◆ ReserveKeyFromKeyPool()
void CWallet::ReserveKeyFromKeyPool | ( | int64_t & | nIndex, |
CKeyPool & | keypool, | ||
bool | fInternal | ||
) |
Definition at line 4458 of file wallet.cpp.
References CWallet::cs_wallet, CWallet::database, CKeyPool::fInternal, CPubKey::GetID(), CWallet::HaveKey(), CWallet::IsHDEnabled(), CCryptoKeyStore::IsLocked(), CPubKey::IsValid(), LOCK, LogPrintf, CWallet::m_pool_key_to_index, WalletBatch::ReadPool(), CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, CWallet::TopUpKeyPool(), and CKeyPool::vchPubKey.
Referenced by CWallet::GetKeyFromPool(), and CReserveKey::GetReservedKey().
◆ ReturnKey() [1/2]
void CWallet::ReturnKey | ( | int64_t | nIndex, |
bool | fInternal, | ||
const CPubKey & | pubkey | ||
) |
Definition at line 4506 of file wallet.cpp.
References CWallet::cs_wallet, CPubKey::GetID(), LOCK, LogPrintf, CWallet::m_pool_key_to_index, CWallet::setExternalKeyPool, and CWallet::setInternalKeyPool.
Referenced by CReserveKey::ReturnKey().
◆ ReturnKey() [2/2]
void CReserveKey::ReturnKey | ( | ) |
Definition at line 4749 of file wallet.cpp.
References CReserveKey::fInternal, CReserveKey::nIndex, CReserveKey::pwallet, CWallet::ReturnKey(), and CReserveKey::vchPubKey.
Referenced by CTransactionBuilder::Clear(), CWallet::CreateTransaction(), CKeyHolder::ReturnKey(), CTransactionBuilderOutput::ReturnKey(), and CReserveKey::~CReserveKey().
◆ SelectCoins()
|
private |
Select a set of coins such that nValueRet >= nTargetValue and at least all coins from coinControl are selected; Never select unconfirmed coins if they are not ours.
Definition at line 3168 of file wallet.cpp.
References ALL_COINS, bSpendZeroConfChange, DEFAULT_ANCESTOR_LIMIT, DEFAULT_DESCENDANT_LIMIT, DEFAULT_WALLET_REJECT_LONG_CHAINS, CCoinControl::fAllowOtherInputs, CCoinControl::fRequireAllInputs, gArgs, ArgsManager::GetArg(), ArgsManager::GetBoolArg(), CCoinControl::HasSelected(), CWallet::IsFullyMixed(), CCoinControl::ListSelected(), CWallet::mapWallet, CCoinControl::nCoinType, ONLY_FULLY_MIXED, CWallet::SelectCoinsMinConf(), CMerkleTx::tx, and vCoins.
Referenced by CWallet::CreateTransaction().
◆ SelectCoinsGroupedByAddresses()
bool CWallet::SelectCoinsGroupedByAddresses | ( | std::vector< CompactTallyItem > & | vecTallyRet, |
bool | fSkipDenominated = true , |
||
bool | fAnonymizable = true , |
||
bool | fSkipUnconfirmed = true , |
||
int | nMaxOupointsPerAddress = -1 |
||
) | const |
Definition at line 3355 of file wallet.cpp.
References COIN, cs_main, CWallet::cs_wallet, EncodeDestination(), ExtractDestination(), CWallet::fAnonymizableTallyCached, CWallet::fAnonymizableTallyCachedNonDenom, fMasternodeMode, CMerkleTx::GetBlocksToMaturity(), CPrivateSend::GetSmallestDenomination(), CMerkleTx::IsCoinBase(), CPrivateSend::IsCollateralAmount(), CPrivateSend::IsDenominatedAmount(), CWallet::IsFullyMixed(), CWallet::IsLockedCoin(), CWallet::IsMine(), ISMINE_SPENDABLE, CWallet::IsSpent(), CWalletTx::IsTrusted(), LOCK2, LogAcceptCategory(), LogPrint, CWallet::mapWallet, BCLog::SELECTCOINS, CWallet::setWalletUTXO, strprintf, CMerkleTx::tx, CWallet::vecAnonymizableTallyCached, and CWallet::vecAnonymizableTallyCachedNonDenom.
Referenced by CWallet::GetAnonymizableBalance().
◆ SelectCoinsMinConf()
bool CWallet::SelectCoinsMinConf | ( | const CAmount & | nTargetValue, |
int | nConfMine, | ||
int | nConfTheirs, | ||
uint64_t | nMaxAncestors, | ||
std::vector< COutput > | vCoins, | ||
std::set< CInputCoin > & | setCoinsRet, | ||
CAmount & | nValueRet, | ||
CoinType | nCoinType = CoinType::ALL_COINS |
||
) | const |
Shuffle and select coins until nTargetValue is reached while avoiding small change; This method is stochastic for some inputs and upon completion the coin set and corresponding actual target value is assembled.
Definition at line 3025 of file wallet.cpp.
References ApproximateBestSubset(), FormatMoney(), CMerkleTx::GetHash(), GetRandInt(), CPrivateSend::IsDenominatedAmount(), CWalletTx::IsFromMe(), CMerkleTx::IsLockedByInstantSend(), ISMINE_ALL, less_then_denom(), LogPrint, maxTxFee, mempool, MIN_CHANGE, CTxOut::nValue, ONLY_FULLY_MIXED, BCLog::SELECTCOINS, CTxMemPool::TransactionWithinChainLimit(), CMerkleTx::tx, CInputCoin::txout, and vCoins.
Referenced by BOOST_AUTO_TEST_CASE(), CoinSelection(), and CWallet::SelectCoins().
◆ SelectDenominatedAmounts()
bool CWallet::SelectDenominatedAmounts | ( | CAmount | nValueMax, |
std::set< CAmount > & | setAmountsRet | ||
) | const |
Definition at line 3458 of file wallet.cpp.
References CWallet::AvailableCoins(), CPrivateSend::GetSmallestDenomination(), CCoinControl::nCoinType, ONLY_READY_TO_MIX, and vCoins.
◆ SelectPSInOutPairsByDenominations()
bool CWallet::SelectPSInOutPairsByDenominations | ( | int | nDenom, |
CAmount | nValueMax, | ||
std::vector< std::pair< CTxDSIn, CTxOut > > & | vecPSInOutPairsRet | ||
) |
Definition at line 3311 of file wallet.cpp.
References CWallet::AvailableCoins(), COIN, CPrivateSend::DenominationToAmount(), GetRandInt(), CWallet::GetRealOutpointPrivateSendRounds(), CPrivateSend::IsValidDenomination(), LogPrint, CCoinControl::nCoinType, ONLY_READY_TO_MIX, CTxIn::prevout, BCLog::PRIVATESEND, base_blob< BITS >::ToString(), and vCoins.
◆ SetAddressBook()
bool CWallet::SetAddressBook | ( | const CTxDestination & | address, |
const std::string & | strName, | ||
const std::string & | purpose | ||
) |
Definition at line 4277 of file wallet.cpp.
References CWallet::cs_wallet, CT_NEW, CT_UPDATED, EncodeDestination(), CWallet::IsMine(), ISMINE_NO, LOCK, CWallet::mapAddressBook, CWallet::NotifyAddressBookChanged, WalletBatch::WriteName(), and WalletBatch::WritePurpose().
Referenced by addmultisigaddress(), AddressTableModel::addRow(), PaymentServer::fetchPaymentACK(), CWallet::GetAccountDestination(), getnewaddress(), ImportAddress(), importprivkey(), ImportScript(), importwallet(), ProcessImport(), WalletModel::sendCoins(), setaccount(), and AddressTableModel::setData().
◆ TopUpKeyPool()
bool CWallet::TopUpKeyPool | ( | unsigned int | kpSize = 0 | ) |
Definition at line 4391 of file wallet.cpp.
References _(), CWallet::cs_wallet, CWallet::database, DEFAULT_KEYPOOL_SIZE, gArgs, CWallet::GenerateNewKey(), ArgsManager::GetArg(), CPubKey::GetID(), CClientUIInterface::InitMessage, CWallet::IsHDEnabled(), CCryptoKeyStore::IsLocked(), LOCK, LogPrintf, CWallet::m_max_keypool_index, CWallet::m_pool_key_to_index, CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, strprintf, uiInterface, and WalletBatch::WritePool().
Referenced by CWallet::AddToWalletIfInvolvingMe(), CWallet::EncryptWallet(), getnewaddress(), getrawchangeaddress(), keypoolrefill(), CWallet::NewKeyPool(), CWallet::ReserveKeyFromKeyPool(), CWallet::Unlock(), and walletpassphrase().
◆ UnlockAllCoins()
void CWallet::UnlockAllCoins | ( | ) |
Definition at line 4814 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, and CWallet::setLockedCoins.
Referenced by lockunspent().
◆ UnlockCoin()
void CWallet::UnlockCoin | ( | const COutPoint & | output | ) |
Definition at line 4803 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, CWallet::fAnonymizableTallyCached, CWallet::fAnonymizableTallyCachedNonDenom, COutPoint::hash, CWallet::mapWallet, and CWallet::setLockedCoins.
Referenced by lockunspent(), and WalletModel::unlockCoin().
◆ ZapSelectTx()
DBErrors CWallet::ZapSelectTx | ( | std::vector< uint256 > & | vHashIn, |
std::vector< uint256 > & | vHashOut | ||
) |
Definition at line 4220 of file wallet.cpp.
References AssertLockHeld(), CWallet::cs_wallet, CWallet::database, DB_LOAD_OK, DB_NEED_REWRITE, CWallet::m_pool_key_to_index, CWallet::mapWallet, CWallet::MarkDirty(), CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, CWallet::wtxOrdered, and WalletBatch::ZapSelectTx().
Referenced by removeprunedfunds().
◆ ZapWalletTx()
Definition at line 4252 of file wallet.cpp.
References CWallet::cs_wallet, CWallet::database, DB_LOAD_OK, DB_NEED_REWRITE, LOCK, CWallet::m_pool_key_to_index, CWallet::nKeysLeftSinceAutoBackup, CWallet::setExternalKeyPool, CWallet::setInternalKeyPool, and WalletBatch::ZapWalletTx().