![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Classes | |
struct | CompareValueOnly |
Functions | |
std::string | COutput::ToString () const |
int | COutput::Priority () const |
const CWalletTx * | CWallet::GetWalletTx (const uint256 &hash) const |
CPubKey | CWallet::GenerateNewKey (uint32_t nAccountIndex, bool fInternal) |
void | CWallet::DeriveNewChildKey (const CKeyMetadata &metadata, CKey &secretRet, uint32_t nAccountIndex, bool fInternal) |
bool | CWallet::GetPubKey (const CKeyID &address, CPubKey &vchPubKeyOut) const |
GetPubKey implementation that also checks the mapHdPubKeys. More... | |
bool | CWallet::GetKey (const CKeyID &address, CKey &keyOut) const |
GetKey implementation that can derive a HD private key on the fly. More... | |
bool | CWallet::HaveKey (const CKeyID &address) const |
HaveKey implementation that also checks the mapHdPubKeys. More... | |
bool | CWallet::LoadHDPubKey (const CHDPubKey &hdPubKey) |
loads a HDPubKey into the wallets memory More... | |
bool | CWallet::AddHDPubKey (const CExtPubKey &extPubKey, bool fInternal) |
Adds a HDPubKey into the wallet(database) More... | |
bool | CWallet::AddKeyPubKey (const CKey &key, const CPubKey &pubkey) |
Adds a key to the store, and saves it to disk. More... | |
bool | CWallet::AddCryptedKey (const CPubKey &vchPubKey, const std::vector< unsigned char > &vchCryptedSecret) |
Adds an encrypted key to the store, and saves it to disk. More... | |
bool | CWallet::LoadKeyMetadata (const CPubKey &pubkey, const CKeyMetadata &metadata) |
Load metadata (used by LoadWallet) More... | |
bool | CWallet::LoadCryptedKey (const CPubKey &vchPubKey, const std::vector< unsigned char > &vchCryptedSecret) |
Adds an encrypted key to the store, without saving it to disk (used by LoadWallet) More... | |
bool | CWallet::AddCScript (const CScript &redeemScript) |
Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki. More... | |
bool | CWallet::LoadCScript (const CScript &redeemScript) |
bool | CWallet::AddWatchOnly (const CScript &dest) |
Adds a watch-only address to the store, and saves it to disk. More... | |
bool | CWallet::RemoveWatchOnly (const CScript &dest) |
bool | CWallet::LoadWatchOnly (const CScript &dest) |
Adds a watch-only address to the store, without saving it to disk (used by LoadWallet) More... | |
bool | CWallet::Unlock (const SecureString &strWalletPassphrase, bool fForMixingOnly=false) |
bool | CWallet::ChangeWalletPassphrase (const SecureString &strOldWalletPassphrase, const SecureString &strNewWalletPassphrase) |
void | CWallet::SetBestChain (const CBlockLocator &loc) |
bool | CWallet::SetMinVersion (enum WalletFeature, CWalletDB *pwalletdbIn=NULL, bool fExplicit=false) |
signify that a particular wallet feature is now used. this may change nWalletVersion and nWalletMaxVersion if those are lower More... | |
bool | CWallet::SetMaxVersion (int nVersion) |
change which version we're allowed to upgrade to (note that this does not immediately imply upgrading to that format) More... | |
std::set< uint256 > | CWallet::GetConflicts (const uint256 &txid) const |
Get wallet transactions that conflict with given transaction (spend same outputs) More... | |
void | CWallet::Flush (bool shutdown=false) |
Flush wallet (bitdb flush) More... | |
static bool | CWallet::Verify (const std::string &walletFile, std::string &warningString, std::string &errorString) |
Verify the wallet database and perform salvage if required. More... | |
void | CWallet::SyncMetaData (std::pair< TxSpends::iterator, TxSpends::iterator >) |
bool | CWallet::IsSpent (const uint256 &hash, unsigned int n) const |
void | CWallet::AddToSpends (const COutPoint &outpoint, const uint256 &wtxid) |
void | CWallet::AddToSpends (const uint256 &wtxid) |
bool | CWallet::EncryptWallet (const SecureString &strWalletPassphrase) |
int64_t | CWallet::IncOrderPosNext (CWalletDB *pwalletdb=NULL) |
void | CWallet::MarkDirty () |
bool | CWallet::AddToWallet (const CWalletTx &wtxIn, bool fFromLoadWallet, CWalletDB *pwalletdb) |
bool | CWallet::AddToWalletIfInvolvingMe (const CTransaction &tx, const CBlock *pblock, bool fUpdate) |
bool | CWallet::AbandonTransaction (const uint256 &hashTx) |
void | CWallet::MarkConflicted (const uint256 &hashBlock, const uint256 &hashTx) |
void | CWallet::SyncTransaction (const CTransaction &tx, const CBlock *pblock) |
isminetype | CWallet::IsMine (const CTxIn &txin) const |
CAmount | CWallet::GetDebit (const CTxIn &txin, const isminefilter &filter) const |
int | CWallet::GetRealOutpointPrivateSendRounds (const COutPoint &outpoint, int nRounds) const |
int | CWallet::GetOutpointPrivateSendRounds (const COutPoint &outpoint) const |
bool | CWallet::IsDenominated (const COutPoint &outpoint) const |
bool | CWallet::IsDenominatedAmount (CAmount nInputAmount) const |
isminetype | CWallet::IsMine (const CTxOut &txout) const |
CAmount | CWallet::GetCredit (const CTxOut &txout, const isminefilter &filter) const |
bool | CWallet::IsChange (const CTxOut &txout) const |
CAmount | CWallet::GetChange (const CTxOut &txout) const |
void | CWallet::GenerateNewHDChain () |
bool | CWallet::SetHDChain (const CHDChain &chain, bool memonly) |
bool | CWallet::SetCryptedHDChain (const CHDChain &chain, bool memonly) |
bool | CWallet::GetDecryptedHDChain (CHDChain &hdChainRet) |
bool | CWallet::IsHDEnabled () |
bool | CWallet::IsMine (const CTransaction &tx) const |
bool | CWallet::IsFromMe (const CTransaction &tx) const |
CAmount | CWallet::GetDebit (const CTransaction &tx, const isminefilter &filter) const |
CAmount | CWallet::GetCredit (const CTransaction &tx, const isminefilter &filter) const |
CAmount | CWallet::GetChange (const CTransaction &tx) const |
int64_t | CWalletTx::GetTxTime () const |
int | CWalletTx::GetRequestCount () const |
void | CWalletTx::GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, std::string &strSentAccount, const isminefilter &filter) const |
void | CWalletTx::GetAccountAmounts (const std::string &strAccount, CAmount &nReceived, CAmount &nSent, CAmount &nFee, const isminefilter &filter) const |
bool | CWalletTx::WriteToDisk (CWalletDB *pwalletdb) |
int | CWallet::ScanForWalletTransactions (CBlockIndex *pindexStart, bool fUpdate=false) |
void | CWallet::ReacceptWalletTransactions () |
bool | CWalletTx::RelayWalletTransaction (CConnman *connman, std::string strCommand="tx") |
std::set< uint256 > | CWalletTx::GetConflicts () const |
CAmount | CWalletTx::GetDebit (const isminefilter &filter) const |
filter decides which addresses will count towards the debit More... | |
CAmount | CWalletTx::GetCredit (const isminefilter &filter) const |
CAmount | CWalletTx::GetImmatureCredit (bool fUseCache=true) const |
CAmount | CWalletTx::GetAvailableCredit (bool fUseCache=true) const |
CAmount | CWalletTx::GetImmatureWatchOnlyCredit (const bool &fUseCache=true) const |
CAmount | CWalletTx::GetAvailableWatchOnlyCredit (const bool &fUseCache=true) const |
CAmount | CWalletTx::GetAnonymizedCredit (bool fUseCache=true) const |
CAmount | CWalletTx::GetDenominatedCredit (bool unconfirmed, bool fUseCache=true) const |
CAmount | CWalletTx::GetChange () const |
bool | CWalletTx::InMempool () const |
bool | CWalletTx::IsTrusted () const |
bool | CWalletTx::IsEquivalentTo (const CWalletTx &tx) const |
std::vector< uint256 > | CWallet::ResendWalletTransactionsBefore (int64_t nTime, CConnman *connman) |
void | CWallet::ResendWalletTransactions (int64_t nBestBlockTime, CConnman *connman) |
bool CWallet::AbandonTransaction | ( | const uint256 & | hashTx | ) |
Definition at line 1066 of file wallet.cpp.
Referenced by abandontransaction().
|
virtual |
Adds an encrypted key to the store, and saves it to disk.
Reimplemented from CCryptoKeyStore.
Definition at line 313 of file wallet.cpp.
|
virtual |
Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki.
Reimplemented from CBasicKeyStore.
Definition at line 349 of file wallet.cpp.
Referenced by addmultisigaddress(), and ImportScript().
bool CWallet::AddHDPubKey | ( | const CExtPubKey & | extPubKey, |
bool | fInternal | ||
) |
Adds a HDPubKey into the wallet(database)
Definition at line 260 of file wallet.cpp.
Adds a key to the store, and saves it to disk.
Reimplemented from CCryptoKeyStore.
Definition at line 288 of file wallet.cpp.
Referenced by importelectrumwallet(), importprivkey(), and importwallet().
Definition at line 701 of file wallet.cpp.
|
private |
Definition at line 712 of file wallet.cpp.
Definition at line 880 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::AddToWalletIfInvolvingMe | ( | const CTransaction & | tx, |
const CBlock * | pblock, | ||
bool | fUpdate | ||
) |
Add a transaction to the wallet, or update it. pblock is optional, but should be provided if the transaction is known to be in a block. If fUpdate is true, existing transactions will be updated.
Definition at line 1028 of file wallet.cpp.
|
virtual |
Adds a watch-only address to the store, and saves it to disk.
Reimplemented from CBasicKeyStore.
Definition at line 374 of file wallet.cpp.
Referenced by ImportScript().
bool CWallet::ChangeWalletPassphrase | ( | const SecureString & | strOldWalletPassphrase, |
const SecureString & | strNewWalletPassphrase | ||
) |
Definition at line 447 of file wallet.cpp.
Referenced by walletpassphrasechange().
|
private |
Definition at line 140 of file wallet.cpp.
bool CWallet::EncryptWallet | ( | const SecureString & | strWalletPassphrase | ) |
Definition at line 723 of file wallet.cpp.
Referenced by encryptwallet().
void CWallet::Flush | ( | bool | shutdown = false | ) |
Flush wallet (bitdb flush)
Definition at line 589 of file wallet.cpp.
Referenced by PrepareShutdown().
void CWallet::GenerateNewHDChain | ( | ) |
Definition at line 1392 of file wallet.cpp.
Referenced by AppInit2().
CPubKey CWallet::GenerateNewKey | ( | uint32_t | nAccountIndex, |
bool | fInternal | ||
) |
keystore implementation Generate a new key
Definition at line 103 of file wallet.cpp.
void CWalletTx::GetAccountAmounts | ( | const std::string & | strAccount, |
CAmount & | nReceived, | ||
CAmount & | nSent, | ||
CAmount & | nFee, | ||
const isminefilter & | filter | ||
) | const |
Definition at line 1641 of file wallet.cpp.
Referenced by GetAccountBalance().
void CWalletTx::GetAmounts | ( | std::list< COutputEntry > & | listReceived, |
std::list< COutputEntry > & | listSent, | ||
CAmount & | nFee, | ||
std::string & | strSentAccount, | ||
const isminefilter & | filter | ||
) | const |
Definition at line 1585 of file wallet.cpp.
Referenced by getbalance(), listaccounts(), and ListTransactions().
CAmount CWalletTx::GetAnonymizedCredit | ( | bool | fUseCache = true | ) | const |
Definition at line 1944 of file wallet.cpp.
CAmount CWalletTx::GetAvailableCredit | ( | bool | fUseCache = true | ) | const |
Definition at line 1871 of file wallet.cpp.
Referenced by CWallet::GetBalance(), and CWallet::GetUnconfirmedBalance().
CAmount CWalletTx::GetAvailableWatchOnlyCredit | ( | const bool & | fUseCache = true | ) | const |
Definition at line 1915 of file wallet.cpp.
Referenced by CWallet::GetUnconfirmedWatchOnlyBalance(), and CWallet::GetWatchOnlyBalance().
CAmount CWalletTx::GetChange | ( | ) | const |
Definition at line 2023 of file wallet.cpp.
Referenced by TransactionRecord::decomposeTransaction(), and TransactionDesc::toHTML().
Definition at line 1385 of file wallet.cpp.
CAmount CWallet::GetChange | ( | const CTransaction & | tx | ) | const |
Definition at line 1528 of file wallet.cpp.
set< uint256 > CWalletTx::GetConflicts | ( | ) | const |
Definition at line 1781 of file wallet.cpp.
Referenced by WalletTxToJSON().
Get wallet transactions that conflict with given transaction (spend same outputs)
Definition at line 566 of file wallet.cpp.
CAmount CWalletTx::GetCredit | ( | const isminefilter & | filter | ) | const |
Definition at line 1824 of file wallet.cpp.
Referenced by TransactionRecord::decomposeTransaction(), gettransaction(), and TransactionDesc::toHTML().
CAmount CWallet::GetCredit | ( | const CTxOut & | txout, |
const isminefilter & | filter | ||
) | const |
Definition at line 1356 of file wallet.cpp.
CAmount CWallet::GetCredit | ( | const CTransaction & | tx, |
const isminefilter & | filter | ||
) | const |
Definition at line 1516 of file wallet.cpp.
CAmount CWalletTx::GetDebit | ( | const isminefilter & | filter | ) | const |
filter decides which addresses will count towards the debit
Definition at line 1793 of file wallet.cpp.
Referenced by TransactionRecord::decomposeTransaction(), gettransaction(), CWalletTx::IsFromMe(), and TransactionDesc::toHTML().
CAmount CWallet::GetDebit | ( | const CTxIn & | txin, |
const isminefilter & | filter | ||
) | const |
Definition at line 1225 of file wallet.cpp.
CAmount CWallet::GetDebit | ( | const CTransaction & | tx, |
const isminefilter & | filter | ||
) | const |
Definition at line 1504 of file wallet.cpp.
bool CWallet::GetDecryptedHDChain | ( | CHDChain & | hdChainRet | ) |
Definition at line 1464 of file wallet.cpp.
Referenced by dumphdinfo(), and dumpwallet().
CAmount CWalletTx::GetDenominatedCredit | ( | bool | unconfirmed, |
bool | fUseCache = true |
||
) | const |
Definition at line 1978 of file wallet.cpp.
Referenced by CWallet::GetDenominatedBalance().
CAmount CWalletTx::GetImmatureCredit | ( | bool | fUseCache = true | ) | const |
Definition at line 1857 of file wallet.cpp.
Referenced by CWallet::GetImmatureBalance().
CAmount CWalletTx::GetImmatureWatchOnlyCredit | ( | const bool & | fUseCache = true | ) | const |
Definition at line 1901 of file wallet.cpp.
Referenced by CWallet::GetImmatureWatchOnlyBalance().
GetKey implementation that can derive a HD private key on the fly.
Reimplemented from CCryptoKeyStore.
Definition at line 216 of file wallet.cpp.
Referenced by dumpprivkey(), dumpwallet(), SignVerifyMessageDialog::on_signMessageButton_SM_clicked(), and signmessage().
int CWallet::GetOutpointPrivateSendRounds | ( | const COutPoint & | outpoint | ) | const |
Definition at line 1321 of file wallet.cpp.
Referenced by listunspent(), CoinControlDialog::updateView(), and CoinControlDialog::viewItemChanged().
GetPubKey implementation that also checks the mapHdPubKeys.
Reimplemented from CCryptoKeyStore.
Definition at line 202 of file wallet.cpp.
Referenced by _createmultisig_redeemScript().
int CWallet::GetRealOutpointPrivateSendRounds | ( | const COutPoint & | outpoint, |
int | nRounds | ||
) | const |
Definition at line 1242 of file wallet.cpp.
int CWalletTx::GetRequestCount | ( | ) | const |
Definition at line 1546 of file wallet.cpp.
Referenced by TransactionDesc::FormatTxStatus(), TransactionDesc::toHTML(), and TransactionRecord::updateStatus().
int64_t CWalletTx::GetTxTime | ( | ) | const |
Definition at line 1540 of file wallet.cpp.
Referenced by TransactionRecord::decomposeTransaction(), TransactionDesc::toHTML(), and WalletTxToJSON().
Definition at line 94 of file wallet.cpp.
|
virtual |
HaveKey implementation that also checks the mapHdPubKeys.
Reimplemented from CCryptoKeyStore.
Definition at line 244 of file wallet.cpp.
Referenced by importelectrumwallet(), importprivkey(), and importwallet().
int64_t CWallet::IncOrderPosNext | ( | CWalletDB * | pwalletdb = NULL | ) |
Increment the next transaction order id
Definition at line 856 of file wallet.cpp.
Referenced by movecmd().
bool CWalletTx::InMempool | ( | ) | const |
Definition at line 2032 of file wallet.cpp.
Referenced by CWallet::AvailableCoins(), TransactionDesc::FormatTxStatus(), CWallet::GetUnconfirmedBalance(), CWallet::GetUnconfirmedWatchOnlyBalance(), and WalletModel::transactionCanBeAbandoned().
bool CWallet::IsChange | ( | const CTxOut & | txout | ) | const |
Definition at line 1363 of file wallet.cpp.
bool CWallet::IsDenominated | ( | const COutPoint & | outpoint | ) | const |
Definition at line 1328 of file wallet.cpp.
bool CWallet::IsDenominatedAmount | ( | CAmount | nInputAmount | ) | const |
Definition at line 1343 of file wallet.cpp.
Referenced by CPrivateSendClient::MakeCollateralAmounts().
bool CWalletTx::IsEquivalentTo | ( | const CWalletTx & | tx | ) | const |
Definition at line 2072 of file wallet.cpp.
Referenced by CWallet::SyncMetaData().
bool CWallet::IsFromMe | ( | const CTransaction & | tx | ) | const |
should probably be renamed to IsRelevantToMe
Definition at line 1499 of file wallet.cpp.
bool CWallet::IsHDEnabled | ( | ) |
HD Wallet Functions
Definition at line 1485 of file wallet.cpp.
Referenced by AppInit2(), and keypoolrefill().
isminetype CWallet::IsMine | ( | const CTxIn & | txin | ) | const |
Definition at line 1210 of file wallet.cpp.
Referenced by AppInit2().
isminetype CWallet::IsMine | ( | const CTxOut & | txout | ) | const |
Definition at line 1351 of file wallet.cpp.
bool CWallet::IsMine | ( | const CTransaction & | tx | ) | const |
Definition at line 1491 of file wallet.cpp.
bool CWallet::IsSpent | ( | const uint256 & | hash, |
unsigned int | n | ||
) | const |
Outpoint is spent if any non-conflicted transaction spends it:
Definition at line 682 of file wallet.cpp.
bool CWalletTx::IsTrusted | ( | ) | const |
Definition at line 2041 of file wallet.cpp.
Referenced by CWallet::AvailableCoins(), CWallet::CountInputsWithAmount(), CWallet::GetAddressBalances(), CWallet::GetBalance(), CWallet::GetUnconfirmedBalance(), CWallet::GetUnconfirmedWatchOnlyBalance(), CWallet::GetWatchOnlyBalance(), CWallet::SelectCoinsGrouppedByAddresses(), TransactionRecord::updateStatus(), and WalletTxToJSON().
bool CWallet::LoadCryptedKey | ( | const CPubKey & | vchPubKey, |
const std::vector< unsigned char > & | vchCryptedSecret | ||
) |
Adds an encrypted key to the store, without saving it to disk (used by LoadWallet)
Definition at line 344 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::LoadCScript | ( | const CScript & | redeemScript | ) |
Definition at line 358 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::LoadHDPubKey | ( | const CHDPubKey & | hdPubKey | ) |
loads a HDPubKey into the wallets memory
Definition at line 252 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::LoadKeyMetadata | ( | const CPubKey & | pubkey, |
const CKeyMetadata & | metadata | ||
) |
Load metadata (used by LoadWallet)
Definition at line 334 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::LoadWatchOnly | ( | const CScript & | dest | ) |
Adds a watch-only address to the store, without saving it to disk (used by LoadWallet)
Definition at line 399 of file wallet.cpp.
Referenced by ReadKeyValue().
Definition at line 1127 of file wallet.cpp.
void CWallet::MarkDirty | ( | ) |
Definition at line 868 of file wallet.cpp.
Referenced by importprivkey(), ImportScript(), importwallet(), and OptionsDialog::on_okButton_clicked().
int COutput::Priority | ( | ) | const |
Definition at line 84 of file wallet.cpp.
Referenced by CompareByPriority::operator()().
void CWallet::ReacceptWalletTransactions | ( | ) |
Definition at line 1728 of file wallet.cpp.
Referenced by AppInit2(), importaddress(), and importpubkey().
bool CWalletTx::RelayWalletTransaction | ( | CConnman * | connman, |
std::string | strCommand = "tx" |
||
) |
Definition at line 1760 of file wallet.cpp.
Referenced by CWallet::CommitTransaction(), and CWallet::ResendWalletTransactionsBefore().
|
virtual |
Reimplemented from CBasicKeyStore.
Definition at line 385 of file wallet.cpp.
|
virtual |
Reimplemented from CValidationInterface.
Definition at line 2105 of file wallet.cpp.
std::vector< uint256 > CWallet::ResendWalletTransactionsBefore | ( | int64_t | nTime, |
CConnman * | connman | ||
) |
Definition at line 2081 of file wallet.cpp.
Referenced by resendwallettransactions().
int CWallet::ScanForWalletTransactions | ( | CBlockIndex * | pindexStart, |
bool | fUpdate = false |
||
) |
Scan the block chain (starting in pindexStart) for transactions from or to us. If fUpdate is true, found transactions that already exist in the wallet will be updated.
Definition at line 1687 of file wallet.cpp.
Referenced by AppInit2(), importaddress(), importelectrumwallet(), importprivkey(), importpubkey(), and importwallet().
|
virtual |
Reimplemented from CValidationInterface.
Definition at line 521 of file wallet.cpp.
Referenced by AppInit2().
bool CWallet::SetCryptedHDChain | ( | const CHDChain & | chain, |
bool | memonly | ||
) |
Definition at line 1442 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::SetHDChain | ( | const CHDChain & | chain, |
bool | memonly | ||
) |
Definition at line 1429 of file wallet.cpp.
Referenced by ReadKeyValue().
bool CWallet::SetMaxVersion | ( | int | nVersion | ) |
change which version we're allowed to upgrade to (note that this does not immediately imply upgrading to that format)
Definition at line 554 of file wallet.cpp.
Referenced by AppInit2().
bool CWallet::SetMinVersion | ( | enum WalletFeature | nVersion, |
CWalletDB * | pwalletdbIn = NULL , |
||
bool | fExplicit = false |
||
) |
signify that a particular wallet feature is now used. this may change nWalletVersion and nWalletMaxVersion if those are lower
Definition at line 527 of file wallet.cpp.
Referenced by AppInit2().
|
private |
Definition at line 641 of file wallet.cpp.
|
virtual |
Reimplemented from CValidationInterface.
Definition at line 1189 of file wallet.cpp.
std::string COutput::ToString | ( | ) | const |
Definition at line 79 of file wallet.cpp.
bool CWallet::Unlock | ( | const SecureString & | strWalletPassphrase, |
bool | fForMixingOnly = false |
||
) |
Definition at line 404 of file wallet.cpp.
Referenced by walletpassphrase().
|
static |
Verify the wallet database and perform salvage if required.
Definition at line 594 of file wallet.cpp.
Referenced by AppInit2().
bool CWalletTx::WriteToDisk | ( | CWalletDB * | pwalletdb | ) |
Definition at line 1677 of file wallet.cpp.
Referenced by CWallet::AddToWallet(), and AppInit2().