Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
MapWallet

Functions

static bool wallet::EncryptMasterKey (const SecureString &wallet_passphrase, const CKeyingMaterial &plain_master_key, CMasterKey &master_key)
static bool wallet::DecryptMasterKey (const SecureString &wallet_passphrase, const CMasterKey &master_key, CKeyingMaterial &plain_master_key)
const CWalletTx * wallet::CWallet::GetWalletTx (const Txid &hash) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
void wallet::CWallet::UpgradeDescriptorCache () EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Upgrade DescriptorCaches.
bool wallet::CWallet::Unlock (const SecureString &strWalletPassphrase)
bool wallet::CWallet::ChangeWalletPassphrase (const SecureString &strOldWalletPassphrase, const SecureString &strNewWalletPassphrase)
void wallet::CWallet::SetLastBlockProcessedInMem (int block_height, uint256 block_hash) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
void wallet::CWallet::SetLastBlockProcessed (int block_height, uint256 block_hash) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Set last block processed height, and write to database.
std::set< Txid > wallet::CWallet::GetConflicts (const Txid &txid) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Get wallet transactions that conflict with given transaction (spend same outputs).
bool wallet::CWallet::HasWalletSpend (const CTransactionRef &tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Check if a given transaction has any of its outputs spent by another transaction in the wallet.
void wallet::CWallet::Close ()
 Close wallet database.
std::set< CWalletTx *, WalletTxOrderComparator > wallet::CWallet::GetMalleatedVariants (const CWalletTx &wtx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Collects all wallet txs that differ from wtx only in their scriptSigs (i.e.
void wallet::CWallet::SyncMalleatedTxMetadata (WalletBatch &batch, const CWalletTx &wtx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsSpent (const COutPoint &outpoint) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Outpoint is spent if any non-conflicted transaction spends it:
SpendType wallet::CWallet::HowSpent (const COutPoint &outpoint) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
void wallet::CWallet::AddToSpends (const COutPoint &outpoint, const Txid &txid) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
void wallet::CWallet::AddToSpends (const CWalletTx &wtx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::EncryptWallet (const SecureString &strWalletPassphrase)
DBErrors wallet::CWallet::ReorderTransactions ()
int64_t wallet::CWallet::IncOrderPosNext (WalletBatch *batch=nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Increment the next transaction order id.
void wallet::CWallet::MarkDirty ()
bool wallet::CWallet::MarkReplaced (const Txid &originalHash, const Txid &newHash)
 Mark a transaction as replaced by another transaction.
void wallet::CWallet::SetSpentKeyState (WalletBatch &batch, const Txid &hash, unsigned int n, bool used, std::set< CTxDestination > &tx_destinations) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsSpentKey (const CScript &scriptPubKey) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
CWalletTx * wallet::CWallet::AddToWallet (CTransactionRef tx, const TxState &state, const UpdateWalletTxFn &update_wtx=nullptr, bool rescanning_old_block=false)
 Add the transaction to the wallet, wrapping it up inside a CWalletTx.
bool wallet::CWallet::LoadToWallet (CWalletTx &&wtx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::AddToWalletIfInvolvingMe (const CTransactionRef &tx, const SyncTxState &state, bool rescanning_old_block) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Add a transaction to the wallet, or update it.
bool wallet::CWallet::TransactionCanBeAbandoned (const Txid &hashTx) const
 Return whether transaction can be abandoned.
void wallet::CWallet::UpdateTrucSiblingConflicts (const CWalletTx &parent_wtx, const Txid &child_txid, bool add_conflict) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Update mempool conflicts for TRUC sibling transactions.
void wallet::CWallet::MarkInputsDirty (const CTransactionRef &tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Mark a transaction's inputs dirty, thus forcing the outputs to be recomputed.
bool wallet::CWallet::AbandonTransaction (const Txid &hashTx)
bool wallet::CWallet::AbandonTransaction (CWalletTx &tx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
void wallet::CWallet::MarkConflicted (const uint256 &hashBlock, int conflicting_height, const Txid &hashTx)
 Mark a transaction (and its in-wallet descendants) as conflicting with a particular block.
void wallet::CWallet::RecursiveUpdateTxState (const Txid &tx_hash, const TryUpdatingStateFn &try_updating_state) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Mark a transaction (and its in-wallet descendants) as a particular tx state.
void wallet::CWallet::RecursiveUpdateTxState (WalletBatch *batch, const Txid &tx_hash, const TryUpdatingStateFn &try_updating_state) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::SyncTransaction (const CTransactionRef &tx, const SyncTxState &state, bool rescanning_old_block=false) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
void wallet::CWallet::transactionAddedToMempool (const CTransactionRef &tx) override
void wallet::CWallet::transactionRemovedFromMempool (const CTransactionRef &tx, MemPoolRemovalReason reason) override
void wallet::CWallet::blockConnected (const kernel::ChainstateRole &role, const interfaces::BlockInfo &block) override
void wallet::CWallet::blockDisconnected (const interfaces::BlockInfo &block) override
void wallet::CWallet::updatedBlockTip () override
CAmount wallet::CWallet::GetDebit (const CTxIn &txin) const
 Returns amount of debit, i.e.
bool wallet::CWallet::IsMine (const CTxOut &txout) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsMine (const CTxDestination &dest) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsMine (const CScript &script) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsMine (const CTransaction &tx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsMine (const COutPoint &outpoint) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::IsFromMe (const CTransaction &tx) const
 should probably be renamed to IsRelevantToMe
CAmount wallet::CWallet::GetDebit (const CTransaction &tx) const
bool wallet::CWallet::IsHDEnabled () const
bool wallet::CWallet::CanGetAddresses (bool internal=false) const
void BlockUntilSyncedToCurrentChain() const LOCKS_EXCLUDED(void wallet::CWallet::SetWalletFlag (uint64_t flags)
 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.
void wallet::CWallet::SetWalletFlagWithDB (WalletBatch &batch, uint64_t flags)
 Store wallet flags.
void wallet::CWallet::UnsetWalletFlag (uint64_t flag)
 Unsets a single wallet flag.
void wallet::CWallet::UnsetWalletFlagWithDB (WalletBatch &batch, uint64_t flag)
 Unsets a wallet flag and saves it to disk.
void wallet::CWallet::UnsetBlankWalletFlag (WalletBatch &batch) override
 Unset the blank wallet flag and saves it to disk.
bool wallet::CWallet::IsWalletFlagSet (uint64_t flag) const override
 check if a certain wallet flag is set
bool wallet::CWallet::LoadWalletFlags (uint64_t flags)
 Loads the flags into the wallet.
void wallet::CWallet::InitWalletFlags (uint64_t flags)
 overwrite all flags by the given uint64_t flags must be uninitialised (or 0) only known flags may be present
uint64_t wallet::CWallet::GetWalletFlags () const
 Retrieve all of the wallet's flags.
void wallet::CWallet::MaybeUpdateBirthTime (int64_t time)
 Updates wallet birth time if 'time' is below it.
int64_t wallet::CWallet::RescanFromTime (int64_t startTime, const WalletRescanReserver &reserver)
 Scan active chain for relevant transactions after importing keys.
ScanResult wallet::CWallet::ScanForWalletTransactions (const uint256 &start_block, int start_height, std::optional< int > max_height, const WalletRescanReserver &reserver, bool save_progress)
 Scan the block chain (starting in start_block) for transactions from or to us.
bool wallet::CWallet::SubmitTxMemoryPoolAndRelay (CWalletTx &wtx, std::string &err_string, node::TxBroadcast broadcast_method) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
 Pass this transaction to node for optional mempool insertion and relay to peers.
std::set< Txid > wallet::CWallet::GetTxConflicts (const CWalletTx &wtx) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet)
bool wallet::CWallet::ShouldResend () const
 Return true if all conditions for periodically resending transactions are met.
static NodeClock::time_point wallet::CWallet::GetDefaultNextResend ()
void wallet::CWallet::ResubmitWalletTransactions (node::TxBroadcast broadcast_method, bool force)

Detailed Description

Function Documentation

◆ AbandonTransaction() [1/2]

bool wallet::CWallet::AbandonTransaction ( const Txid & hashTx)

Definition at line 1334 of file wallet.cpp.

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

◆ AbandonTransaction() [2/2]

bool wallet::CWallet::AbandonTransaction ( CWalletTx & tx)

Definition at line 1342 of file wallet.cpp.

Here is the call graph for this function:

◆ AddToSpends() [1/2]

void wallet::CWallet::AddToSpends ( const COutPoint & outpoint,
const Txid & txid )
private

Definition at line 833 of file wallet.cpp.

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

◆ AddToSpends() [2/2]

void wallet::CWallet::AddToSpends ( const CWalletTx & wtx)
private

Definition at line 841 of file wallet.cpp.

Here is the call graph for this function:

◆ AddToWallet()

CWalletTx * wallet::CWallet::AddToWallet ( CTransactionRef tx,
const TxState & state,
const UpdateWalletTxFn & update_wtx = nullptr,
bool rescanning_old_block = false )

Add the transaction to the wallet, wrapping it up inside a CWalletTx.

Returns
the recently added wtx pointer or nullptr if there was a db write error.

Definition at line 1078 of file wallet.cpp.

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

◆ AddToWalletIfInvolvingMe()

bool wallet::CWallet::AddToWalletIfInvolvingMe ( const CTransactionRef & tx,
const SyncTxState & state,
bool rescanning_old_block )
private

Add a transaction to the wallet, or update it.

confirm.block_* should be set when the transaction was known to be included in a block. When block_hash.IsNull(), then wallet state is not updated in AddToWallet, but notifications happen and cached balances are marked dirty.

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 chain notifications or by checking mempool presence when necessary.

Should be called with rescanning_old_block set to true, if the transaction is not discovered in real time, but during a rescan of old blocks.

Definition at line 1235 of file wallet.cpp.

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

◆ blockConnected()

void wallet::CWallet::blockConnected ( const kernel::ChainstateRole & role,
const interfaces::BlockInfo & block )
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1570 of file wallet.cpp.

Here is the call graph for this function:

◆ blockDisconnected()

void wallet::CWallet::blockDisconnected ( const interfaces::BlockInfo & block)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1599 of file wallet.cpp.

Here is the call graph for this function:

◆ CanGetAddresses()

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

Definition at line 1757 of file wallet.cpp.

Here is the call graph for this function:

◆ ChangeWalletPassphrase()

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

Definition at line 647 of file wallet.cpp.

Here is the call graph for this function:

◆ Close()

void wallet::CWallet::Close ( )

Close wallet database.

Definition at line 730 of file wallet.cpp.

Here is the call graph for this function:

◆ DecryptMasterKey()

bool wallet::DecryptMasterKey ( const SecureString & wallet_passphrase,
const CMasterKey & master_key,
CKeyingMaterial & plain_master_key )
static

Definition at line 613 of file wallet.cpp.

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

◆ EncryptMasterKey()

bool wallet::EncryptMasterKey ( const SecureString & wallet_passphrase,
const CKeyingMaterial & plain_master_key,
CMasterKey & master_key )
static

Definition at line 567 of file wallet.cpp.

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

◆ EncryptWallet()

bool wallet::CWallet::EncryptWallet ( const SecureString & strWalletPassphrase)

Definition at line 850 of file wallet.cpp.

Here is the call graph for this function:

◆ GetConflicts()

std::set< Txid > wallet::CWallet::GetConflicts ( const Txid & txid) const

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

Definition at line 695 of file wallet.cpp.

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

◆ GetDebit() [1/2]

CAmount wallet::CWallet::GetDebit ( const CTransaction & tx) const

Definition at line 1734 of file wallet.cpp.

Here is the call graph for this function:

◆ GetDebit() [2/2]

CAmount wallet::CWallet::GetDebit ( const CTxIn & txin) const

Returns amount of debit, i.e.

the amount leaving this wallet due to this input

Definition at line 1663 of file wallet.cpp.

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

◆ GetDefaultNextResend()

NodeClock::time_point wallet::CWallet::GetDefaultNextResend ( )
staticprivate

Definition at line 2120 of file wallet.cpp.

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

◆ GetMalleatedVariants()

std::set< CWalletTx *, WalletTxOrderComparator > wallet::CWallet::GetMalleatedVariants ( const CWalletTx & wtx)
private

Collects all wallet txs that differ from wtx only in their scriptSigs (i.e.

different tx id malleated variants) plus wtx itself. Sorted by the order in which they were inserted in the wallet (CWalletTx::nOrderPos)

Definition at line 735 of file wallet.cpp.

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

◆ GetTxConflicts()

std::set< Txid > wallet::CWallet::GetTxConflicts ( const CWalletTx & wtx) const

Definition at line 2093 of file wallet.cpp.

Here is the call graph for this function:

◆ GetWalletFlags()

uint64_t wallet::CWallet::GetWalletFlags ( ) const

Retrieve all of the wallet's flags.

Definition at line 1836 of file wallet.cpp.

◆ GetWalletTx()

const CWalletTx * wallet::CWallet::GetWalletTx ( const Txid & hash) const

Definition at line 543 of file wallet.cpp.

Here is the caller graph for this function:

◆ HasWalletSpend()

bool wallet::CWallet::HasWalletSpend ( const CTransactionRef & tx) const

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

Definition at line 718 of file wallet.cpp.

Here is the call graph for this function:

◆ HowSpent()

CWallet::SpendType wallet::CWallet::HowSpent ( const COutPoint & outpoint) const

Definition at line 810 of file wallet.cpp.

◆ IncOrderPosNext()

int64_t wallet::CWallet::IncOrderPosNext ( WalletBatch * batch = nullptr)

Increment the next transaction order id.

Returns
next transaction order id

Definition at line 982 of file wallet.cpp.

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

◆ InitWalletFlags()

void wallet::CWallet::InitWalletFlags ( uint64_t flags)

overwrite all flags by the given uint64_t flags must be uninitialised (or 0) only known flags may be present

Definition at line 1820 of file wallet.cpp.

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

◆ IsFromMe()

bool wallet::CWallet::IsFromMe ( const CTransaction & tx) const

should probably be renamed to IsRelevantToMe

Definition at line 1725 of file wallet.cpp.

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

◆ IsHDEnabled()

bool wallet::CWallet::IsHDEnabled ( ) const

Definition at line 1746 of file wallet.cpp.

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

◆ IsMine() [1/5]

bool wallet::CWallet::IsMine ( const COutPoint & outpoint) const

Definition at line 1712 of file wallet.cpp.

Here is the call graph for this function:

◆ IsMine() [2/5]

bool wallet::CWallet::IsMine ( const CScript & script) const

Definition at line 1685 of file wallet.cpp.

◆ IsMine() [3/5]

bool wallet::CWallet::IsMine ( const CTransaction & tx) const

Definition at line 1703 of file wallet.cpp.

Here is the call graph for this function:

◆ IsMine() [4/5]

bool wallet::CWallet::IsMine ( const CTxDestination & dest) const

Definition at line 1679 of file wallet.cpp.

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

◆ IsMine() [5/5]

bool wallet::CWallet::IsMine ( const CTxOut & txout) const

Definition at line 1673 of file wallet.cpp.

Here is the call graph for this function:

◆ IsSpent()

bool wallet::CWallet::IsSpent ( const COutPoint & outpoint) const

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

Definition at line 793 of file wallet.cpp.

Here is the caller graph for this function:

◆ IsSpentKey()

bool wallet::CWallet::IsSpentKey ( const CScript & scriptPubKey) const

Definition at line 1065 of file wallet.cpp.

Here is the call graph for this function:

◆ IsWalletFlagSet()

bool wallet::CWallet::IsWalletFlagSet ( uint64_t flag) const
overridevirtual

check if a certain wallet flag is set

Implements wallet::WalletStorage.

Definition at line 1803 of file wallet.cpp.

Here is the caller graph for this function:

◆ LoadToWallet()

bool wallet::CWallet::LoadToWallet ( CWalletTx && wtx)

Definition at line 1203 of file wallet.cpp.

Here is the call graph for this function:

◆ LoadWalletFlags()

bool wallet::CWallet::LoadWalletFlags ( uint64_t flags)

Loads the flags into the wallet.

(used by LoadWallet)

Definition at line 1808 of file wallet.cpp.

Here is the caller graph for this function:

◆ MarkConflicted()

void wallet::CWallet::MarkConflicted ( const uint256 & hashBlock,
int conflicting_height,
const Txid & hashTx )
private

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

Definition at line 1372 of file wallet.cpp.

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

◆ MarkDirty()

void wallet::CWallet::MarkDirty ( )

Definition at line 994 of file wallet.cpp.

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

◆ MarkInputsDirty()

void wallet::CWallet::MarkInputsDirty ( const CTransactionRef & tx)
private

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

Definition at line 1324 of file wallet.cpp.

Here is the caller graph for this function:

◆ MarkReplaced()

bool wallet::CWallet::MarkReplaced ( const Txid & originalHash,
const Txid & newHash )

Mark a transaction as replaced by another transaction.

Definition at line 1003 of file wallet.cpp.

Here is the call graph for this function:

◆ MaybeUpdateBirthTime()

void wallet::CWallet::MaybeUpdateBirthTime ( int64_t time)

Updates wallet birth time if 'time' is below it.

Definition at line 1841 of file wallet.cpp.

Here is the caller graph for this function:

◆ RecursiveUpdateTxState() [1/2]

void wallet::CWallet::RecursiveUpdateTxState ( const Txid & tx_hash,
const TryUpdatingStateFn & try_updating_state )
private

Mark a transaction (and its in-wallet descendants) as a particular tx state.

Definition at line 1402 of file wallet.cpp.

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

◆ RecursiveUpdateTxState() [2/2]

void wallet::CWallet::RecursiveUpdateTxState ( WalletBatch * batch,
const Txid & tx_hash,
const TryUpdatingStateFn & try_updating_state )
private

Definition at line 1407 of file wallet.cpp.

Here is the call graph for this function:

◆ ReorderTransactions()

DBErrors wallet::CWallet::ReorderTransactions ( )

Definition at line 925 of file wallet.cpp.

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

◆ RescanFromTime()

int64_t wallet::CWallet::RescanFromTime ( int64_t startTime,
const WalletRescanReserver & reserver )

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

Here is the call graph for this function:

◆ ResubmitWalletTransactions()

void wallet::CWallet::ResubmitWalletTransactions ( node::TxBroadcast broadcast_method,
bool force )

Definition at line 2147 of file wallet.cpp.

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

◆ ScanForWalletTransactions()

CWallet::ScanResult wallet::CWallet::ScanForWalletTransactions ( const uint256 & start_block,
int start_height,
std::optional< int > max_height,
const WalletRescanReserver & reserver,
bool save_progress )

Scan the block chain (starting in start_block) for transactions from or to us.

If max_height is not set, the mempool will be scanned as well.

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

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

◆ SetLastBlockProcessed()

void wallet::CWallet::SetLastBlockProcessed ( int block_height,
uint256 block_hash )

Set last block processed height, and write to database.

Definition at line 687 of file wallet.cpp.

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

◆ SetLastBlockProcessedInMem()

void wallet::CWallet::SetLastBlockProcessedInMem ( int block_height,
uint256 block_hash )
private

Definition at line 679 of file wallet.cpp.

Here is the caller graph for this function:

◆ SetSpentKeyState()

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

Definition at line 1046 of file wallet.cpp.

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

◆ SetWalletFlag()

void wallet::CWallet::SetWalletFlag ( uint64_t flags)

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.

set a single wallet flag

Definition at line 1770 of file wallet.cpp.

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

◆ SetWalletFlagWithDB()

void wallet::CWallet::SetWalletFlagWithDB ( WalletBatch & batch,
uint64_t flags )
private

Store wallet flags.

Definition at line 1776 of file wallet.cpp.

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

◆ ShouldResend()

bool wallet::CWallet::ShouldResend ( ) const

Return true if all conditions for periodically resending transactions are met.

Definition at line 2103 of file wallet.cpp.

Here is the call graph for this function:

◆ SubmitTxMemoryPoolAndRelay()

bool wallet::CWallet::SubmitTxMemoryPoolAndRelay ( CWalletTx & wtx,
std::string & err_string,
node::TxBroadcast broadcast_method ) const

Pass this transaction to node for optional mempool insertion and relay to peers.

Definition at line 2050 of file wallet.cpp.

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

◆ SyncMalleatedTxMetadata()

void wallet::CWallet::SyncMalleatedTxMetadata ( WalletBatch & batch,
const CWalletTx & wtx )
private

Definition at line 765 of file wallet.cpp.

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

◆ SyncTransaction()

bool wallet::CWallet::SyncTransaction ( const CTransactionRef & tx,
const SyncTxState & state,
bool rescanning_old_block = false )
private

Definition at line 1446 of file wallet.cpp.

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

◆ transactionAddedToMempool()

void wallet::CWallet::transactionAddedToMempool ( const CTransactionRef & tx)
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1458 of file wallet.cpp.

Here is the call graph for this function:

◆ TransactionCanBeAbandoned()

bool wallet::CWallet::TransactionCanBeAbandoned ( const Txid & hashTx) const

Return whether transaction can be abandoned.

Definition at line 1300 of file wallet.cpp.

Here is the call graph for this function:

◆ transactionRemovedFromMempool()

void wallet::CWallet::transactionRemovedFromMempool ( const CTransactionRef & tx,
MemPoolRemovalReason reason )
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1501 of file wallet.cpp.

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

◆ Unlock()

bool wallet::CWallet::Unlock ( const SecureString & strWalletPassphrase)

Definition at line 626 of file wallet.cpp.

Here is the call graph for this function:

◆ UnsetBlankWalletFlag()

void wallet::CWallet::UnsetBlankWalletFlag ( WalletBatch & batch)
overrideprivatevirtual

Unset the blank wallet flag and saves it to disk.

Implements wallet::WalletStorage.

Definition at line 1798 of file wallet.cpp.

Here is the call graph for this function:

◆ UnsetWalletFlag()

void wallet::CWallet::UnsetWalletFlag ( uint64_t flag)

Unsets a single wallet flag.

Definition at line 1784 of file wallet.cpp.

Here is the call graph for this function:

◆ UnsetWalletFlagWithDB()

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

Unsets a wallet flag and saves it to disk.

Definition at line 1790 of file wallet.cpp.

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

◆ updatedBlockTip()

void wallet::CWallet::updatedBlockTip ( )
overridevirtual

Reimplemented from interfaces::Chain::Notifications.

Definition at line 1646 of file wallet.cpp.

Here is the call graph for this function:

◆ UpdateTrucSiblingConflicts()

void wallet::CWallet::UpdateTrucSiblingConflicts ( const CWalletTx & parent_wtx,
const Txid & child_txid,
bool add_conflict )
private

Update mempool conflicts for TRUC sibling transactions.

Definition at line 1307 of file wallet.cpp.

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

◆ UpgradeDescriptorCache()

void wallet::CWallet::UpgradeDescriptorCache ( )

Upgrade DescriptorCaches.

Definition at line 552 of file wallet.cpp.

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