Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 1,040 Lines • ▼ Show 20 Lines | |||||
* be set when the transaction was known to be included in a block. When pIndex | * 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 | * == nullptr, then wallet state is not updated in AddToWallet, but | ||||
* notifications happen and cached balances are marked dirty. | * notifications happen and cached balances are marked dirty. | ||||
* | * | ||||
* If fUpdate is true, existing transactions will be updated. | * If fUpdate is true, existing transactions will be updated. | ||||
* TODO: One exception to this is that the abandoned state is cleared under the | * 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 | * 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 is an indication that it is not safe to be considered abandoned. | ||||
* Abandoned state should probably be more carefuly tracked via different | * Abandoned state should probably be more carefully tracked via different | ||||
* posInBlock signals or by checking mempool presence when necessary. | * posInBlock signals or by checking mempool presence when necessary. | ||||
*/ | */ | ||||
bool CWallet::AddToWalletIfInvolvingMe(const CTransactionRef &ptx, | bool CWallet::AddToWalletIfInvolvingMe(const CTransactionRef &ptx, | ||||
const CBlockIndex *pIndex, | const CBlockIndex *pIndex, | ||||
int posInBlock, bool fUpdate) { | int posInBlock, bool fUpdate) { | ||||
const CTransaction &tx = *ptx; | const CTransaction &tx = *ptx; | ||||
AssertLockHeld(cs_wallet); | AssertLockHeld(cs_wallet); | ||||
▲ Show 20 Lines • Show All 3,421 Lines • Show Last 20 Lines |