Bitcoin ABC  0.25.8
P2P Digital Currency
Functions
MapWallet

Functions

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 CChainParamsCWallet::GetChainParams () const override
 
const CWalletTxCWallet::GetWalletTx (const TxId &txid) const 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::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) override
 signify that a particular wallet feature is now used. 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< TxIdCWallet::GetConflicts (const TxId &txid) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Get wallet transactions that conflict with given transaction (spend same outputs) More...
 
bool CWallet::HasWalletSpend (const TxId &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 ()
 Flush wallet (bitdb flush) More...
 
void CWallet::Close ()
 Close wallet database. More...
 
void CWallet::SyncMetaData (std::pair< TxSpends::iterator, TxSpends::iterator >) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWallet::IsSpent (const COutPoint &outpoint) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Outpoint is spent if any non-conflicted transaction, spends it: More...
 
void CWallet::AddToSpends (const COutPoint &outpoint, const TxId &wtxid) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
void CWallet::AddToSpends (const TxId &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)
 Increment the next transaction order id. More...
 
void CWallet::MarkDirty ()
 
void CWallet::SetSpentKeyState (WalletBatch &batch, const TxId &txid, unsigned int n, bool used, std::set< CTxDestination > &tx_destinations) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWallet::IsSpentKey (const TxId &txid, unsigned int n) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
CWalletTxCWallet::AddToWallet (CTransactionRef tx, const CWalletTx::Confirmation &confirm, const UpdateWalletTxFn &update_wtx=nullptr, bool fFlushOnClose=true)
 
bool CWallet::LoadToWallet (const TxId &txid, const UpdateWalletTxFn &fill_wtx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWallet::AddToWalletIfInvolvingMe (const CTransactionRef &tx, CWalletTx::Confirmation confirm, bool fUpdate) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Add a transaction to the wallet, or update it. More...
 
bool CWallet::TransactionCanBeAbandoned (const TxId &txid) const
 Return whether transaction can be abandoned. More...
 
void CWallet::MarkInputsDirty (const CTransactionRef &tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Mark a transaction's inputs dirty, thus forcing the outputs to be recomputed. More...
 
bool CWallet::AbandonTransaction (const TxId &txid)
 Mark a transaction (and it in-wallet descendants) as abandoned so its inputs may be respent. More...
 
void CWallet::MarkConflicted (const BlockHash &hashBlock, int conflicting_height, const TxId &txid)
 Mark a transaction (and its in-wallet descendants) as conflicting with a particular block. More...
 
void CWallet::SyncTransaction (const CTransactionRef &tx, CWalletTx::Confirmation confirm, bool update_tx=true) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Used by TransactionAddedToMemorypool/BlockConnected/Disconnected/ScanForWalletTransactions. More...
 
void CWallet::transactionAddedToMempool (const CTransactionRef &tx, uint64_t mempool_sequence) override
 
void CWallet::transactionRemovedFromMempool (const CTransactionRef &tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) override
 
void CWallet::blockConnected (const CBlock &block, int height) override
 
void CWallet::blockDisconnected (const CBlock &block, int height) override
 
void CWallet::updatedBlockTip () override
 
isminetype CWallet::IsMine (const CTxIn &txin) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
Amount CWallet::GetDebit (const CTxIn &txin, const isminefilter &filter) const
 Returns amount of debit if the input matches the filter, otherwise returns 0. More...
 
isminetype CWallet::IsMine (const CTxOut &txout) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
isminetype CWallet::IsMine (const CTxDestination &dest) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
isminetype CWallet::IsMine (const CScript &script) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
Amount CWallet::GetCredit (const CTxOut &txout, const isminefilter &filter) const
 
bool CWallet::IsChange (const CTxOut &txout) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWallet::IsChange (const CScript &script) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
Amount CWallet::GetChange (const CTxOut &txout) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWallet::IsMine (const CTransaction &tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWallet::IsFromMe (const CTransaction &tx) const
 should probably be renamed to IsRelevantToMe More...
 
Amount CWallet::GetDebit (const CTransaction &tx, const isminefilter &filter) const
 
bool CWallet::IsAllFromMe (const CTransaction &tx, const isminefilter &filter) const
 Returns whether all of the inputs match the filter. More...
 
Amount CWallet::GetCredit (const CTransaction &tx, const isminefilter &filter) const
 
Amount CWallet::GetChange (const CTransaction &tx) const
 
bool CWallet::IsHDEnabled () const
 
bool CWallet::CanGetAddresses (bool internal=false) const
 Returns true if the wallet can give out new addresses. More...
 
void CWallet::UnsetWalletFlag (uint64_t flag)
 Unsets a single wallet flag. More...
 
void CWallet::UnsetWalletFlagWithDB (WalletBatch &batch, uint64_t flag)
 Unsets a wallet flag and saves it to disk. More...
 
void CWallet::UnsetBlankWalletFlag (WalletBatch &batch) override
 Unset the blank wallet flag and saves it to disk. More...
 
bool CWallet::IsWalletFlagSet (uint64_t flag) const override
 Check if a certain wallet flag is set. More...
 
bool CWallet::LoadWalletFlags (uint64_t flags)
 Loads the flags into the wallet. More...
 
bool CWallet::AddWalletFlags (uint64_t flags)
 Overwrite all flags by the given uint64_t. More...
 
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, int64_t timestamp) 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 apply_label, const int64_t timestamp) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
void CWalletTx::GetAmounts (std::list< COutputEntry > &listReceived, std::list< COutputEntry > &listSent, Amount &nFee, const isminefilter &filter) const
 
int64_t CWallet::RescanFromTime (int64_t startTime, const WalletRescanReserver &reserver, bool update)
 Scan active chain for relevant transactions after importing keys. More...
 
ScanResult CWallet::ScanForWalletTransactions (const BlockHash &start_block, int start_height, std::optional< int > max_height, const WalletRescanReserver &reserver, bool fUpdate)
 Scan the block chain (starting in start_block) for transactions from or to us. More...
 
void CWallet::ReacceptWalletTransactions () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWalletTx::SubmitMemoryPoolAndRelay (std::string &err_string, bool relay)
 
std::set< TxIdCWalletTx::GetConflicts () const NO_THREAD_SAFETY_ANALYSIS
 
Amount CWalletTx::GetCachableAmount (AmountType type, const isminefilter &filter, bool recalculate=false) const
 
Amount CWalletTx::GetDebit (const isminefilter &filter) const
 filter decides which addresses will count towards the debit More...
 
Amount CWalletTx::GetCredit (const isminefilter &filter) const
 
Amount CWalletTx::GetImmatureCredit (bool fUseCache=true) const
 
Amount CWalletTx::GetAvailableCredit (bool fUseCache=true, const isminefilter &filter=ISMINE_SPENDABLE) const NO_THREAD_SAFETY_ANALYSIS
 
Amount CWalletTx::GetImmatureWatchOnlyCredit (const bool fUseCache=true) const
 
Amount CWalletTx::GetChange () const
 
bool CWalletTx::InMempool () const
 
bool CWalletTx::IsTrusted () const
 
bool CWallet::IsTrusted (const CWalletTx &wtx, std::set< TxId > &trusted_parents) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 
bool CWalletTx::IsEquivalentTo (const CWalletTx &tx) const
 
void CWallet::ResendWalletTransactions ()
 

Detailed Description

Function Documentation

◆ AbandonTransaction()

bool CWallet::AbandonTransaction ( const TxId txid)

Mark a transaction (and it in-wallet descendants) as abandoned so its inputs may be respent.

Definition at line 1171 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddToSpends() [1/2]

void CWallet::AddToSpends ( const COutPoint outpoint,
const TxId wtxid 
)
private

Definition at line 684 of file wallet.cpp.

◆ AddToSpends() [2/2]

void CWallet::AddToSpends ( const TxId wtxid)
private

Definition at line 694 of file wallet.cpp.

◆ AddToWallet()

CWalletTx * CWallet::AddToWallet ( CTransactionRef  tx,
const CWalletTx::Confirmation confirm,
const UpdateWalletTxFn update_wtx = nullptr,
bool  fFlushOnClose = true 
)

Definition at line 954 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AddToWalletIfInvolvingMe()

bool CWallet::AddToWalletIfInvolvingMe ( const CTransactionRef tx,
CWalletTx::Confirmation  confirm,
bool  fUpdate 
)
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.

Check if any keys in the wallet keypool that were supposed to be unused have appeared in a new transaction. If so, remove those keys from the keypool. This can happen when restoring an old wallet backup that does not contain the mostly recently created transactions from newer versions of the wallet.

Definition at line 1099 of file wallet.cpp.

Here is the call graph for this function:

◆ AddWalletFlags()

bool CWallet::AddWalletFlags ( uint64_t  flags)

Overwrite all flags by the given uint64_t.

Returns false if unknown, non-tolerable flags are present.

Definition at line 1648 of file wallet.cpp.

Here is the call graph for this function:

◆ blockConnected()

void CWallet::blockConnected ( const CBlock block,
int  height 
)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1355 of file wallet.cpp.

Here is the call graph for this function:

◆ blockDisconnected()

void CWallet::blockDisconnected ( const CBlock block,
int  height 
)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1370 of file wallet.cpp.

◆ CalculateMaximumSignedInputSize()

int CalculateMaximumSignedInputSize ( const CTxOut txout,
const CWallet wallet,
bool  use_max_sig 
)

Definition at line 1796 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateMaximumSignedTxSize() [1/2]

int64_t CalculateMaximumSignedTxSize ( const CTransaction tx,
const CWallet wallet,
bool  use_max_sig 
)

Definition at line 1769 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateMaximumSignedTxSize() [2/2]

int64_t CalculateMaximumSignedTxSize ( const CTransaction tx,
const CWallet wallet,
const std::vector< CTxOut > &  txouts,
bool  use_max_sig 
)

Definition at line 1785 of file wallet.cpp.

Here is the call graph for this function:

◆ CanGetAddresses()

bool CWallet::CanGetAddresses ( bool  internal = false) const

Returns true if the wallet can give out new addresses.

This means it has keys in the keypool or can generate new keys.

Definition at line 1592 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ chainStateFlushed()

void CWallet::chainStateFlushed ( const CBlockLocator loc)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 527 of file wallet.cpp.

Here is the call graph for this function:

◆ ChangeWalletPassphrase()

bool CWallet::ChangeWalletPassphrase ( const SecureString strOldWalletPassphrase,
const SecureString strNewWalletPassphrase 
)

Definition at line 450 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Close()

void CWallet::Close ( )

Close wallet database.

Definition at line 612 of file wallet.cpp.

Here is the caller graph for this function:

◆ DummySignInput()

bool CWallet::DummySignInput ( CTxIn tx_in,
const CTxOut txout,
bool  use_max_sig = false 
) const

Definition at line 1667 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DummySignTx()

bool CWallet::DummySignTx ( CMutableTransaction txNew,
const std::vector< CTxOut > &  txouts,
bool  use_max_sig = false 
) const

Definition at line 1693 of file wallet.cpp.

◆ EncryptWallet()

bool CWallet::EncryptWallet ( const SecureString strWalletPassphrase)

Definition at line 708 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Flush()

void CWallet::Flush ( )

Flush wallet (bitdb flush)

Definition at line 608 of file wallet.cpp.

Here is the caller graph for this function:

◆ GetAmounts()

void CWalletTx::GetAmounts ( std::list< COutputEntry > &  listReceived,
std::list< COutputEntry > &  listSent,
Amount nFee,
const isminefilter filter 
) const

Definition at line 1806 of file wallet.cpp.

Here is the call graph for this function:

◆ GetAvailableCredit()

Amount CWalletTx::GetAvailableCredit ( bool  fUseCache = true,
const isminefilter filter = ISMINE_SPENDABLE 
) const

Definition at line 2198 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCachableAmount()

Amount CWalletTx::GetCachableAmount ( AmountType  type,
const isminefilter filter,
bool  recalculate = false 
) const

Definition at line 2143 of file wallet.cpp.

◆ GetChainParams()

const CChainParams & CWallet::GetChainParams ( ) const
overridevirtual

Implements WalletStorage.

Definition at line 390 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetChange() [1/3]

Amount CWalletTx::GetChange ( ) const

Definition at line 2254 of file wallet.cpp.

◆ GetChange() [2/3]

Amount CWallet::GetChange ( const CTxOut txout) const

Definition at line 1490 of file wallet.cpp.

Here is the call graph for this function:

◆ GetChange() [3/3]

Amount CWallet::GetChange ( const CTransaction tx) const

Definition at line 1569 of file wallet.cpp.

Here is the call graph for this function:

◆ GetConflicts() [1/2]

std::set< TxId > CWalletTx::GetConflicts ( ) const

Definition at line 2132 of file wallet.cpp.

Here is the caller graph for this function:

◆ GetConflicts() [2/2]

std::set< TxId > CWallet::GetConflicts ( const TxId txid) const

Get wallet transactions that conflict with given transaction (spend same outputs)

Definition at line 573 of file wallet.cpp.

◆ GetCredit() [1/3]

Amount CWalletTx::GetCredit ( const isminefilter filter) const

Definition at line 2170 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetCredit() [2/3]

Amount CWallet::GetCredit ( const CTxOut txout,
const isminefilter filter 
) const

Definition at line 1453 of file wallet.cpp.

Here is the call graph for this function:

◆ GetCredit() [3/3]

Amount CWallet::GetCredit ( const CTransaction tx,
const isminefilter filter 
) const

Definition at line 1555 of file wallet.cpp.

Here is the call graph for this function:

◆ GetDebit() [1/3]

Amount CWalletTx::GetDebit ( const isminefilter filter) const

filter decides which addresses will count towards the debit

Definition at line 2154 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDebit() [2/3]

Amount CWallet::GetDebit ( const CTxIn txin,
const isminefilter filter 
) const

Returns amount of debit if the input matches the filter, otherwise returns 0.

Definition at line 1418 of file wallet.cpp.

Here is the call graph for this function:

◆ GetDebit() [3/3]

Amount CWallet::GetDebit ( const CTransaction tx,
const isminefilter filter 
) const

Definition at line 1515 of file wallet.cpp.

Here is the call graph for this function:

◆ GetImmatureCredit()

Amount CWalletTx::GetImmatureCredit ( bool  fUseCache = true) const

Definition at line 2190 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetImmatureWatchOnlyCredit()

Amount CWalletTx::GetImmatureWatchOnlyCredit ( const bool  fUseCache = true) const

Definition at line 2245 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTxTime()

int64_t CWalletTx::GetTxTime ( ) const

Definition at line 1660 of file wallet.cpp.

Here is the caller graph for this function:

◆ GetWalletTx()

const CWalletTx * CWallet::GetWalletTx ( const TxId txid) const

Definition at line 396 of file wallet.cpp.

◆ HasWalletSpend()

bool CWallet::HasWalletSpend ( const TxId txid) const

Check if a given transaction has any of its outputs spent by another transaction in the wallet.

Definition at line 602 of file wallet.cpp.

◆ ImportPrivKeys()

bool CWallet::ImportPrivKeys ( const std::map< CKeyID, CKey > &  privkey_map,
const int64_t  timestamp 
)

Definition at line 1718 of file wallet.cpp.

Here is the caller graph for this function:

◆ ImportPubKeys()

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 
)

Definition at line 1728 of file wallet.cpp.

Here is the caller graph for this function:

◆ ImportScriptPubKeys()

bool CWallet::ImportScriptPubKeys ( const std::string &  label,
const std::set< CScript > &  script_pub_keys,
const bool  have_solving_data,
const bool  apply_label,
const int64_t  timestamp 
)

Definition at line 1742 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ImportScripts()

bool CWallet::ImportScripts ( const std::set< CScript scripts,
int64_t  timestamp 
)

Definition at line 1708 of file wallet.cpp.

Here is the caller graph for this function:

◆ IncOrderPosNext()

int64_t CWallet::IncOrderPosNext ( WalletBatch batch = nullptr)

Increment the next transaction order id.

Returns
next transaction order id

Definition at line 884 of file wallet.cpp.

Here is the call graph for this function:

◆ InMempool()

bool CWalletTx::InMempool ( ) const

Definition at line 2264 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsAllFromMe()

bool CWallet::IsAllFromMe ( const CTransaction tx,
const isminefilter filter 
) const

Returns whether all of the inputs match the filter.

Definition at line 1529 of file wallet.cpp.

Here is the call graph for this function:

◆ IsChange() [1/2]

bool CWallet::IsChange ( const CTxOut txout) const

Definition at line 1463 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsChange() [2/2]

bool CWallet::IsChange ( const CScript script) const

Definition at line 1467 of file wallet.cpp.

Here is the call graph for this function:

◆ IsEquivalentTo()

bool CWalletTx::IsEquivalentTo ( const CWalletTx tx) const

Definition at line 2330 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsFromMe()

bool CWallet::IsFromMe ( const CTransaction tx) const

should probably be renamed to IsRelevantToMe

Definition at line 1511 of file wallet.cpp.

Here is the call graph for this function:

◆ IsHDEnabled()

bool CWallet::IsHDEnabled ( ) const

Definition at line 1583 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsMine() [1/5]

isminetype CWallet::IsMine ( const CTxDestination dest) const

Definition at line 1439 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsMine() [2/5]

isminetype CWallet::IsMine ( const CScript script) const

Definition at line 1444 of file wallet.cpp.

◆ IsMine() [3/5]

isminetype CWallet::IsMine ( const CTxIn txin) const

Definition at line 1402 of file wallet.cpp.

Here is the call graph for this function:

◆ IsMine() [4/5]

isminetype CWallet::IsMine ( const CTxOut txout) const

Definition at line 1434 of file wallet.cpp.

◆ IsMine() [5/5]

bool CWallet::IsMine ( const CTransaction tx) const

Definition at line 1500 of file wallet.cpp.

◆ IsSpent()

bool CWallet::IsSpent ( const COutPoint outpoint) const

Outpoint is spent if any non-conflicted transaction, spends it:

Definition at line 665 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsSpentKey()

bool CWallet::IsSpentKey ( const TxId txid,
unsigned int  n 
) const

Definition at line 927 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsTrusted() [1/2]

bool CWalletTx::IsTrusted ( ) const

Definition at line 2268 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsTrusted() [2/2]

bool CWallet::IsTrusted ( const CWalletTx wtx,
std::set< TxId > &  trusted_parents 
) const

Definition at line 2274 of file wallet.cpp.

Here is the call graph for this function:

◆ IsWalletFlagSet()

bool CWallet::IsWalletFlagSet ( uint64_t  flag) const
overridevirtual

Check if a certain wallet flag is set.

Implements WalletStorage.

Definition at line 1633 of file wallet.cpp.

Here is the caller graph for this function:

◆ LoadToWallet()

bool CWallet::LoadToWallet ( const TxId txid,
const UpdateWalletTxFn fill_wtx 
)

Definition at line 1048 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadWalletFlags()

bool CWallet::LoadWalletFlags ( uint64_t  flags)

Loads the flags into the wallet.

(used by LoadWallet)

Definition at line 1637 of file wallet.cpp.

Here is the caller graph for this function:

◆ MarkConflicted()

void CWallet::MarkConflicted ( const BlockHash hashBlock,
int  conflicting_height,
const TxId txid 
)
private

Mark a transaction (and its in-wallet descendants) as conflicting with a particular block.

Definition at line 1230 of file wallet.cpp.

Here is the call graph for this function:

◆ MarkDirty()

void CWallet::MarkDirty ( )

Definition at line 896 of file wallet.cpp.

Here is the caller graph for this function:

◆ MarkInputsDirty()

void CWallet::MarkInputsDirty ( const CTransactionRef tx)
private

Mark a transaction's inputs dirty, thus forcing the outputs to be recomputed.

Definition at line 1162 of file wallet.cpp.

Here is the call graph for this function:

◆ ReacceptWalletTransactions()

void CWallet::ReacceptWalletTransactions ( )

Definition at line 2064 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReorderTransactions()

DBErrors CWallet::ReorderTransactions ( )

Definition at line 828 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RescanFromTime()

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.

Returns
Earliest timestamp that could be successfully scanned from. Timestamp returned will be higher than startTime if relevant blocks could not be read.

Definition at line 1872 of file wallet.cpp.

Here is the caller graph for this function:

◆ ResendWalletTransactions()

void CWallet::ResendWalletTransactions ( )

Definition at line 2353 of file wallet.cpp.

Here is the call graph for this function:

◆ ScanForWalletTransactions()

CWallet::ScanResult CWallet::ScanForWalletTransactions ( const BlockHash start_block,
int  start_height,
std::optional< int >  max_height,
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.

Parameters
[in]start_blockScan starting block. If block is not on the active chain, the scan will return SUCCESS immediately.
[in]start_heightHeight of start_block
[in]max_heightOptional max scanning height. If unset there is no maximum and scanning can continue to the tip
Returns
ScanResult returning scan information and indicating success or failure. Return status will be set to SUCCESS if scan was successful. FAILURE if a complete rescan was not possible (due to pruning or corruption). USER_ABORT if the rescan was aborted before it could complete.
Precondition
Caller needs to make sure start_block (and the optional stop_block) are on the main chain after to the addition of any new keys you want to detect transactions for.

Definition at line 1923 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetMaxVersion()

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 560 of file wallet.cpp.

◆ SetMinVersion()

void CWallet::SetMinVersion ( enum WalletFeature  nVersion,
WalletBatch batch_in = nullptr,
bool  fExplicit = false 
)
overridevirtual

signify that a particular wallet feature is now used.

this may change nWalletVersion and nWalletMaxVersion if those are lower

Implements WalletStorage.

Definition at line 532 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetSpentKeyState()

void CWallet::SetSpentKeyState ( WalletBatch batch,
const TxId txid,
unsigned int  n,
bool  used,
std::set< CTxDestination > &  tx_destinations 
)

Definition at line 903 of file wallet.cpp.

Here is the call graph for this function:

◆ SubmitMemoryPoolAndRelay()

bool CWalletTx::SubmitMemoryPoolAndRelay ( std::string &  err_string,
bool  relay 
)

Definition at line 2095 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SyncMetaData()

void CWallet::SyncMetaData ( std::pair< TxSpends::iterator, TxSpends::iterator >  range)
private

Definition at line 616 of file wallet.cpp.

Here is the call graph for this function:

◆ SyncTransaction()

void CWallet::SyncTransaction ( const CTransactionRef tx,
CWalletTx::Confirmation  confirm,
bool  update_tx = true 
)
private

Used by TransactionAddedToMemorypool/BlockConnected/Disconnected/ScanForWalletTransactions.

Should be called with non-zero block_hash and posInBlock if this is for a transaction that is included in a block.

Definition at line 1287 of file wallet.cpp.

◆ ToString()

std::string COutput::ToString ( ) const

Definition at line 385 of file wallet.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ transactionAddedToMempool()

void CWallet::transactionAddedToMempool ( const CTransactionRef tx,
uint64_t  mempool_sequence 
)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1300 of file wallet.cpp.

◆ TransactionCanBeAbandoned()

bool CWallet::TransactionCanBeAbandoned ( const TxId txid) const

Return whether transaction can be abandoned.

Definition at line 1155 of file wallet.cpp.

Here is the call graph for this function:

◆ transactionRemovedFromMempool()

void CWallet::transactionRemovedFromMempool ( const CTransactionRef tx,
MemPoolRemovalReason  reason,
uint64_t  mempool_sequence 
)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1313 of file wallet.cpp.

◆ Unlock()

bool CWallet::Unlock ( const SecureString strWalletPassphrase,
bool  accept_no_keys = false 
)

Definition at line 420 of file wallet.cpp.

Here is the call graph for this function:

◆ UnsetBlankWalletFlag()

void CWallet::UnsetBlankWalletFlag ( WalletBatch batch)
overrideprivatevirtual

Unset the blank wallet flag and saves it to disk.

Implements WalletStorage.

Definition at line 1629 of file wallet.cpp.

◆ UnsetWalletFlag()

void CWallet::UnsetWalletFlag ( uint64_t  flag)

Unsets a single wallet flag.

Definition at line 1615 of file wallet.cpp.

Here is the caller graph for this function:

◆ UnsetWalletFlagWithDB()

void CWallet::UnsetWalletFlagWithDB ( WalletBatch batch,
uint64_t  flag 
)
private

Unsets a wallet flag and saves it to disk.

Definition at line 1620 of file wallet.cpp.

Here is the call graph for this function:

◆ updatedBlockTip()

void CWallet::updatedBlockTip ( )
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1387 of file wallet.cpp.

Here is the call graph for this function:

◆ UpgradeKeyMetadata()

void CWallet::UpgradeKeyMetadata ( )

Upgrade stored CKeyMetadata objects to store key origin info as KeyOriginInfo.

Definition at line 406 of file wallet.cpp.

Here is the caller graph for this function: