Bitcoin
|
Functions | |
std::vector< CKeyID > | GetAffectedKeys (const CScript &spk, const SigningProvider &provider) |
static bool | ExtractPubKey (const CScript &dest, CPubKey &pubKeyOut) |
int64_t | CalculateMaximumSignedTxSize (const CTransaction &tx, const CWallet *wallet, bool use_max_sig) |
int64_t | CalculateMaximumSignedTxSize (const CTransaction &tx, const CWallet *wallet, const std::vector< CTxOut > &txouts, bool use_max_sig) |
int | CalculateMaximumSignedInputSize (const CTxOut &txout, const CWallet *wallet, bool use_max_sig) |
std::string | COutput::ToString () const |
const CWalletTx * | CWallet::GetWalletTx (const uint256 &hash) const |
CPubKey | CWallet::GenerateNewKey (WalletBatch &batch, bool internal=false) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWallet::DeriveNewChildKey (WalletBatch &batch, CKeyMetadata &metadata, CKey &secret, bool internal=false) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::AddKeyPubKeyWithDB (WalletBatch &batch, const CKey &key, const CPubKey &pubkey) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Adds a key to the store, and saves it to disk. More... | |
bool | CWallet::AddKeyPubKey (const CKey &key, const CPubKey &pubkey) override EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
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... | |
void | CWallet::LoadKeyMetadata (const CKeyID &keyID, const CKeyMetadata &metadata) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Load metadata (used by LoadWallet) More... | |
void | CWallet::LoadScriptMetadata (const CScriptID &script_id, const CKeyMetadata &metadata) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWallet::UpgradeKeyMetadata () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Upgrade stored CKeyMetadata objects to store key origin info as KeyOriginInfo. 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... | |
void | CWallet::UpdateTimeFirstKey (int64_t nCreateTime) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::AddCScript (const CScript &redeemScript) override |
bool | CWallet::AddCScriptWithDB (WalletBatch &batch, const CScript &script) |
Adds a script to the store and saves it to disk. More... | |
bool | CWallet::LoadCScript (const CScript &redeemScript) |
bool | CWallet::AddWatchOnlyInMem (const CScript &dest) |
bool | CWallet::AddWatchOnlyWithDB (WalletBatch &batch, const CScript &dest) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::AddWatchOnlyWithDB (WalletBatch &batch, const CScript &dest, int64_t create_time) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Adds a watch-only address to the store, and saves it to disk. More... | |
bool | CWallet::AddWatchOnly (const CScript &dest) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::AddWatchOnly (const CScript &dest, int64_t nCreateTime) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Adds a watch-only address to the store, and saves it to disk. More... | |
bool | CWallet::RemoveWatchOnly (const CScript &dest) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
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::HaveWatchOnly (const CScript &dest) const |
Returns whether the watch-only script is in the wallet. More... | |
bool | CWallet::HaveWatchOnly () const |
Returns whether there are any watch-only things in the wallet. More... | |
bool | CWallet::Unlock (const SecureString &strWalletPassphrase, bool accept_no_keys=false) |
bool | CWallet::ChangeWalletPassphrase (const SecureString &strOldWalletPassphrase, const SecureString &strNewWalletPassphrase) |
void | CWallet::ChainStateFlushed (const CBlockLocator &loc) override |
void | CWallet::SetMinVersion (enum WalletFeature, WalletBatch *batch_in=nullptr, 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 EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Get wallet transactions that conflict with given transaction (spend same outputs) More... | |
bool | CWallet::HasWalletSpend (const uint256 &txid) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
Check if a given transaction has any of its outputs spent by another transaction in the wallet. More... | |
void | CWallet::Flush (bool shutdown=false) |
Flush wallet (bitdb flush) More... | |
void | CWallet::SyncMetaData (std::pair< TxSpends::iterator, TxSpends::iterator >) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::IsSpent (interfaces::Chain::Lock &locked_chain, const uint256 &hash, unsigned int n) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWallet::AddToSpends (const COutPoint &outpoint, const uint256 &wtxid) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWallet::AddToSpends (const uint256 &wtxid) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::EncryptWallet (const SecureString &strWalletPassphrase) |
DBErrors | CWallet::ReorderTransactions () |
int64_t | CWallet::IncOrderPosNext (WalletBatch *batch=nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWallet::MarkDirty () |
bool | CWallet::MarkReplaced (const uint256 &originalHash, const uint256 &newHash) |
void | CWallet::SetUsedDestinationState (const uint256 &hash, unsigned int n, bool used) |
bool | CWallet::IsUsedDestination (const CTxDestination &dst) const |
bool | CWallet::IsUsedDestination (const uint256 &hash, unsigned int n) const |
bool | CWallet::AddToWallet (const CWalletTx &wtxIn, bool fFlushOnClose=true) |
void | CWallet::LoadToWallet (const CWalletTx &wtxIn) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::AddToWalletIfInvolvingMe (const CTransactionRef &tx, const uint256 &block_hash, int posInBlock, bool fUpdate) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::TransactionCanBeAbandoned (const uint256 &hashTx) const |
void | CWallet::MarkInputsDirty (const CTransactionRef &tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::AbandonTransaction (interfaces::Chain::Lock &locked_chain, const uint256 &hashTx) |
void | CWallet::MarkConflicted (const uint256 &hashBlock, const uint256 &hashTx) |
void | CWallet::SyncTransaction (const CTransactionRef &tx, const uint256 &block_hash, int posInBlock=0, bool update_tx=true) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWallet::TransactionAddedToMempool (const CTransactionRef &tx) override |
void | CWallet::TransactionRemovedFromMempool (const CTransactionRef &ptx) override |
void | CWallet::BlockConnected (const CBlock &block, const std::vector< CTransactionRef > &vtxConflicted) override |
void | CWallet::BlockDisconnected (const CBlock &block) override |
void | CWallet::UpdatedBlockTip () override |
void | CWallet::BlockUntilSyncedToCurrentChain () LOCKS_EXCLUDED(cs_main |
isminetype | CWallet::IsMine (const CTxIn &txin) const |
CAmount | CWallet::GetDebit (const CTxIn &txin, const isminefilter &filter) 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 |
bool | CWallet::IsChange (const CScript &script) const |
CAmount | CWallet::GetChange (const CTxOut &txout) const |
bool | CWallet::IsMine (const CTransaction &tx) const |
bool | CWallet::IsFromMe (const CTransaction &tx) const |
CAmount | CWallet::GetDebit (const CTransaction &tx, const isminefilter &filter) const |
bool | CWallet::IsAllFromMe (const CTransaction &tx, const isminefilter &filter) const |
CAmount | CWallet::GetCredit (const CTransaction &tx, const isminefilter &filter) const |
CAmount | CWallet::GetChange (const CTransaction &tx) const |
CPubKey | CWallet::GenerateNewSeed () |
CPubKey | CWallet::DeriveNewSeed (const CKey &key) |
void | CWallet::SetHDSeed (const CPubKey &key) |
void | CWallet::SetHDChain (const CHDChain &chain, bool memonly) |
bool | CWallet::IsHDEnabled () const |
bool | CWallet::CanGenerateKeys () |
bool | CWallet::CanGetAddresses (bool internal=false) |
void | CWallet::SetWalletFlag (uint64_t flags) |
void | CWallet::UnsetWalletFlag (uint64_t flag) |
void | CWallet::UnsetWalletFlagWithDB (WalletBatch &batch, uint64_t flag) |
Unsets a wallet flag and saves it to disk. More... | |
bool | CWallet::IsWalletFlagSet (uint64_t flag) const |
bool | CWallet::SetWalletFlags (uint64_t overwriteFlags, bool memOnly) |
int64_t | CWalletTx::GetTxTime () const |
bool | CWallet::DummySignInput (CTxIn &tx_in, const CTxOut &txout, bool use_max_sig=false) const |
bool | CWallet::DummySignTx (CMutableTransaction &txNew, const std::vector< CTxOut > &txouts, bool use_max_sig=false) const |
bool | CWallet::ImportScripts (const std::set< CScript > scripts) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::ImportPrivKeys (const std::map< CKeyID, CKey > &privkey_map, const int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::ImportPubKeys (const std::vector< CKeyID > &ordered_pubkeys, const std::map< CKeyID, CPubKey > &pubkey_map, const std::map< CKeyID, std::pair< CPubKey, KeyOriginInfo >> &key_origins, const bool add_keypool, const bool internal, const int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWallet::ImportScriptPubKeys (const std::string &label, const std::set< CScript > &script_pub_keys, const bool have_solving_data, const bool internal, const int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
void | CWalletTx::GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, CAmount &nFee, const isminefilter &filter) const |
int64_t | CWallet::RescanFromTime (int64_t startTime, const WalletRescanReserver &reserver, bool update) |
ScanResult | CWallet::ScanForWalletTransactions (const uint256 &first_block, const uint256 &last_block, const WalletRescanReserver &reserver, bool fUpdate) |
void | CWallet::ReacceptWalletTransactions (interfaces::Chain::Lock &locked_chain) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) |
bool | CWalletTx::RelayWalletTransaction (interfaces::Chain::Lock &locked_chain) |
std::set< uint256 > | CWalletTx::GetConflicts () const NO_THREAD_SAFETY_ANALYSIS |
CAmount | CWalletTx::GetCachableAmount (AmountType type, const isminefilter &filter, bool recalculate=false) const |
CAmount | CWalletTx::GetDebit (const isminefilter &filter) const |
filter decides which addresses will count towards the debit More... | |
CAmount | CWalletTx::GetCredit (interfaces::Chain::Lock &locked_chain, const isminefilter &filter) const |
CAmount | CWalletTx::GetImmatureCredit (interfaces::Chain::Lock &locked_chain, bool fUseCache=true) const |
CAmount | CWalletTx::GetAvailableCredit (interfaces::Chain::Lock &locked_chain, bool fUseCache=true, const isminefilter &filter=ISMINE_SPENDABLE) const NO_THREAD_SAFETY_ANALYSIS |
CAmount | CWalletTx::GetImmatureWatchOnlyCredit (interfaces::Chain::Lock &locked_chain, const bool fUseCache=true) const |
CAmount | CWalletTx::GetChange () const |
bool | CWalletTx::InMempool () const |
bool | CWalletTx::IsTrusted (interfaces::Chain::Lock &locked_chain) const |
bool | CWalletTx::IsEquivalentTo (const CWalletTx &tx) const |
void | CWallet::ResendWalletTransactions () |
bool CWallet::AbandonTransaction | ( | interfaces::Chain::Lock & | locked_chain, |
const uint256 & | hashTx | ||
) |
bool CWallet::AddCryptedKey | ( | const CPubKey & | vchPubKey, |
const std::vector< unsigned char > & | vchCryptedSecret | ||
) |
Adds an encrypted key to the store, and saves it to disk.
|
overridevirtual |
Reimplemented from FillableSigningProvider.
|
private |
Adds a script to the store and saves it to disk.
Adds a key to the store, and saves it to disk.
Reimplemented from FillableSigningProvider.
|
private |
Adds a key to the store, and saves it to disk.
|
private |
bool CWallet::AddToWallet | ( | const CWalletTx & | wtxIn, |
bool | fFlushOnClose = true |
||
) |
|
private |
Add a transaction to the wallet, or update it. pIndex and posInBlock should be set when the transaction was known to be included in a block. When pIndex == nullptr, then wallet state is not updated in AddToWallet, but notifications happen and cached balances are marked dirty.
If fUpdate is true, existing transactions will be updated. TODO: One exception to this is that the abandoned state is cleared under the assumption that any further notification of a transaction that was considered abandoned is an indication that it is not safe to be considered abandoned. Abandoned state should probably be more carefully tracked via different posInBlock signals or by checking mempool presence when necessary.
|
private |
Private version of AddWatchOnly method which does not accept a timestamp, and which will reset the wallet's nTimeFirstKey value to 1 if the watch key did not previously have a timestamp associated with it. Because this is an inherited virtual method, it is accessible despite being marked private, but it is marked private anyway to encourage use of the other AddWatchOnly which accepts a timestamp and sets nTimeFirstKey more intelligently for more efficient rescans.
Adds a watch-only address to the store, and saves it to disk.
|
private |
|
private |
|
private |
Adds a watch-only address to the store, and saves it to disk.
|
overridevirtual |
Reimplemented from interfaces::Chain::Notifications.
|
overridevirtual |
Reimplemented from interfaces::Chain::Notifications.
void CWallet::BlockUntilSyncedToCurrentChain | ( | ) |
Blocks until the wallet state is up-to-date to /at least/ the current chain at the time this function is entered Obviously holding cs_main/cs_wallet when going into this call may cause deadlock
int CalculateMaximumSignedInputSize | ( | const CTxOut & | txout, |
const CWallet * | wallet, | ||
bool | use_max_sig | ||
) |
int64_t CalculateMaximumSignedTxSize | ( | const CTransaction & | tx, |
const CWallet * | wallet, | ||
bool | use_max_sig | ||
) |
int64_t CalculateMaximumSignedTxSize | ( | const CTransaction & | tx, |
const CWallet * | wallet, | ||
const std::vector< CTxOut > & | txouts, | ||
bool | use_max_sig | ||
) |
bool CWallet::CanGenerateKeys | ( | ) |
bool CWallet::CanGetAddresses | ( | bool | internal = false | ) |
|
overridevirtual |
Reimplemented from interfaces::Chain::Notifications.
bool CWallet::ChangeWalletPassphrase | ( | const SecureString & | strOldWalletPassphrase, |
const SecureString & | strNewWalletPassphrase | ||
) |
|
private |
bool CWallet::DummySignInput | ( | CTxIn & | tx_in, |
const CTxOut & | txout, | ||
bool | use_max_sig = false |
||
) | const |
bool CWallet::DummySignTx | ( | CMutableTransaction & | txNew, |
const std::vector< CTxOut > & | txouts, | ||
bool | use_max_sig = false |
||
) | const |
bool CWallet::EncryptWallet | ( | const SecureString & | strWalletPassphrase | ) |
void CWallet::Flush | ( | bool | shutdown = false | ) |
Flush wallet (bitdb flush)
CPubKey CWallet::GenerateNewKey | ( | WalletBatch & | batch, |
bool | internal = false |
||
) |
keystore implementation Generate a new key
CPubKey CWallet::GenerateNewSeed | ( | ) |
std::vector<CKeyID> GetAffectedKeys | ( | const CScript & | spk, |
const SigningProvider & | provider | ||
) |
void CWalletTx::GetAmounts | ( | std::list< COutputEntry > & | listReceived, |
std::list< COutputEntry > & | listSent, | ||
CAmount & | nFee, | ||
const isminefilter & | filter | ||
) | const |
CAmount CWalletTx::GetAvailableCredit | ( | interfaces::Chain::Lock & | locked_chain, |
bool | fUseCache = true , |
||
const isminefilter & | filter = ISMINE_SPENDABLE |
||
) | const |
CAmount CWalletTx::GetCachableAmount | ( | AmountType | type, |
const isminefilter & | filter, | ||
bool | recalculate = false |
||
) | const |
CAmount CWalletTx::GetChange | ( | ) | const |
CAmount CWallet::GetChange | ( | const CTransaction & | tx | ) | const |
std::set< uint256 > CWalletTx::GetConflicts | ( | ) | const |
Get wallet transactions that conflict with given transaction (spend same outputs)
CAmount CWalletTx::GetCredit | ( | interfaces::Chain::Lock & | locked_chain, |
const isminefilter & | filter | ||
) | const |
CAmount CWallet::GetCredit | ( | const CTxOut & | txout, |
const isminefilter & | filter | ||
) | const |
CAmount CWallet::GetCredit | ( | const CTransaction & | tx, |
const isminefilter & | filter | ||
) | const |
CAmount CWalletTx::GetDebit | ( | const isminefilter & | filter | ) | const |
filter decides which addresses will count towards the debit
CAmount CWallet::GetDebit | ( | const CTxIn & | txin, |
const isminefilter & | filter | ||
) | const |
Returns amount of debit if the input matches the filter, otherwise returns 0
CAmount CWallet::GetDebit | ( | const CTransaction & | tx, |
const isminefilter & | filter | ||
) | const |
CAmount CWalletTx::GetImmatureCredit | ( | interfaces::Chain::Lock & | locked_chain, |
bool | fUseCache = true |
||
) | const |
CAmount CWalletTx::GetImmatureWatchOnlyCredit | ( | interfaces::Chain::Lock & | locked_chain, |
const bool | fUseCache = true |
||
) | const |
int64_t CWalletTx::GetTxTime | ( | ) | const |
bool CWallet::HasWalletSpend | ( | const uint256 & | txid | ) | const |
Check if a given transaction has any of its outputs spent by another transaction in the wallet.
bool CWallet::HaveWatchOnly | ( | const CScript & | dest | ) | const |
Returns whether the watch-only script is in the wallet.
bool CWallet::HaveWatchOnly | ( | ) | const |
Returns whether there are any watch-only things in the wallet.
bool CWallet::ImportPrivKeys | ( | const std::map< CKeyID, CKey > & | privkey_map, |
const int64_t | timestamp | ||
) |
bool CWallet::ImportPubKeys | ( | const std::vector< CKeyID > & | ordered_pubkeys, |
const std::map< CKeyID, CPubKey > & | pubkey_map, | ||
const std::map< CKeyID, std::pair< CPubKey, KeyOriginInfo >> & | key_origins, | ||
const bool | add_keypool, | ||
const bool | internal, | ||
const int64_t | timestamp | ||
) |
bool CWallet::ImportScriptPubKeys | ( | const std::string & | label, |
const std::set< CScript > & | script_pub_keys, | ||
const bool | have_solving_data, | ||
const bool | internal, | ||
const int64_t | timestamp | ||
) |
bool CWallet::ImportScripts | ( | const std::set< CScript > | scripts | ) |
int64_t CWallet::IncOrderPosNext | ( | WalletBatch * | batch = nullptr | ) |
Increment the next transaction order id
bool CWalletTx::InMempool | ( | ) | const |
bool CWallet::IsAllFromMe | ( | const CTransaction & | tx, |
const isminefilter & | filter | ||
) | const |
Returns whether all of the inputs match the filter
bool CWallet::IsChange | ( | const CTxOut & | txout | ) | const |
bool CWallet::IsChange | ( | const CScript & | script | ) | const |
bool CWalletTx::IsEquivalentTo | ( | const CWalletTx & | tx | ) | const |
bool CWallet::IsFromMe | ( | const CTransaction & | tx | ) | const |
should probably be renamed to IsRelevantToMe
bool CWallet::IsHDEnabled | ( | ) | const |
isminetype CWallet::IsMine | ( | const CTxIn & | txin | ) | const |
isminetype CWallet::IsMine | ( | const CTxOut & | txout | ) | const |
bool CWallet::IsMine | ( | const CTransaction & | tx | ) | const |
bool CWallet::IsSpent | ( | interfaces::Chain::Lock & | locked_chain, |
const uint256 & | hash, | ||
unsigned int | n | ||
) | const |
Outpoint is spent if any non-conflicted transaction spends it:
bool CWalletTx::IsTrusted | ( | interfaces::Chain::Lock & | locked_chain | ) | const |
bool CWallet::IsUsedDestination | ( | const CTxDestination & | dst | ) | const |
bool CWallet::IsUsedDestination | ( | const uint256 & | hash, |
unsigned int | n | ||
) | const |
bool CWallet::IsWalletFlagSet | ( | uint64_t | flag | ) | const |
check if a certain wallet flag is set
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)
bool CWallet::LoadCScript | ( | const CScript & | redeemScript | ) |
void CWallet::LoadKeyMetadata | ( | const CKeyID & | keyID, |
const CKeyMetadata & | metadata | ||
) |
Load metadata (used by LoadWallet)
void CWallet::LoadScriptMetadata | ( | const CScriptID & | script_id, |
const CKeyMetadata & | metadata | ||
) |
void CWallet::LoadToWallet | ( | const CWalletTx & | wtxIn | ) |
bool CWallet::LoadWatchOnly | ( | const CScript & | dest | ) |
Adds a watch-only address to the store, without saving it to disk (used by LoadWallet)
void CWallet::MarkDirty | ( | ) |
|
private |
Mark a transaction as replaced by another transaction (e.g., BIP 125).
void CWallet::ReacceptWalletTransactions | ( | interfaces::Chain::Lock & | locked_chain | ) |
bool CWalletTx::RelayWalletTransaction | ( | interfaces::Chain::Lock & | locked_chain | ) |
bool CWallet::RemoveWatchOnly | ( | const CScript & | dest | ) |
DBErrors CWallet::ReorderTransactions | ( | ) |
int64_t CWallet::RescanFromTime | ( | int64_t | startTime, |
const WalletRescanReserver & | reserver, | ||
bool | update | ||
) |
Scan active chain for relevant transactions after importing keys. This should be called whenever new keys are added to the wallet, with the oldest key creation time.
void CWallet::ResendWalletTransactions | ( | ) |
CWallet::ScanResult CWallet::ScanForWalletTransactions | ( | const uint256 & | start_block, |
const uint256 & | stop_block, | ||
const WalletRescanReserver & | reserver, | ||
bool | fUpdate | ||
) |
Scan the block chain (starting in start_block) for transactions from or to us. If fUpdate is true, found transactions that already exist in the wallet will be updated.
[in] | start_block | Scan starting block. If block is not on the active chain, the scan will return SUCCESS immediately. |
[in] | stop_block | Scan ending block. If block is not on the active chain, the scan will continue until it reaches the chain tip. |
void CWallet::SetHDChain | ( | const CHDChain & | chain, |
bool | memonly | ||
) |
void CWallet::SetHDSeed | ( | const CPubKey & | key | ) |
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)
void CWallet::SetMinVersion | ( | enum WalletFeature | nVersion, |
WalletBatch * | batch_in = nullptr , |
||
bool | fExplicit = false |
||
) |
signify that a particular wallet feature is now used. this may change nWalletVersion and nWalletMaxVersion if those are lower
void CWallet::SetUsedDestinationState | ( | const uint256 & | hash, |
unsigned int | n, | ||
bool | used | ||
) |
void CWallet::SetWalletFlag | ( | uint64_t | flags | ) |
set a single wallet flag
bool CWallet::SetWalletFlags | ( | uint64_t | overwriteFlags, |
bool | memOnly | ||
) |
overwrite all flags by the given uint64_t returns false if unknown, non-tolerable flags are present
|
private |
|
private |
std::string COutput::ToString | ( | ) | const |
|
overridevirtual |
Reimplemented from interfaces::Chain::Notifications.
bool CWallet::TransactionCanBeAbandoned | ( | const uint256 & | hashTx | ) | const |
Return whether transaction can be abandoned
|
overridevirtual |
Reimplemented from interfaces::Chain::Notifications.
bool CWallet::Unlock | ( | const SecureString & | strWalletPassphrase, |
bool | accept_no_keys = false |
||
) |
void CWallet::UnsetWalletFlag | ( | uint64_t | flag | ) |
Unsets a single wallet flag
|
private |
Unsets a wallet flag and saves it to disk.
|
overridevirtual |
Reimplemented from interfaces::Chain::Notifications.
void CWallet::UpdateTimeFirstKey | ( | int64_t | nCreateTime | ) |
Update wallet first key creation time. This should be called whenever keys are added to the wallet, with the oldest key creation time.
void CWallet::UpgradeKeyMetadata | ( | ) |
Upgrade stored CKeyMetadata objects to store key origin info as KeyOriginInfo.