mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
doc: update doxygen documention of ComputeTimeSmart() and AddToWalletIfInvolvingMe() regarding rescanning_old_block parameter
This commit is contained in:
parent
d6eb39af21
commit
240ea294d5
2 changed files with 5 additions and 0 deletions
|
|
@ -2384,6 +2384,8 @@ void CWallet::GetKeyBirthTimes(std::map<CKeyID, int64_t>& mapKeyBirth) const {
|
||||||
* - If sending a transaction, assign its timestamp to the current time.
|
* - If sending a transaction, assign its timestamp to the current time.
|
||||||
* - If receiving a transaction outside a block, assign its timestamp to the
|
* - If receiving a transaction outside a block, assign its timestamp to the
|
||||||
* current time.
|
* current time.
|
||||||
|
* - If receiving a transaction during a rescanning process, assign all its
|
||||||
|
* (not already known) transactions' timestamps to the block time.
|
||||||
* - If receiving a block with a future timestamp, assign all its (not already
|
* - If receiving a block with a future timestamp, assign all its (not already
|
||||||
* known) transactions' timestamps to the current time.
|
* known) transactions' timestamps to the current time.
|
||||||
* - If receiving a block with a past timestamp, before the most recent known
|
* - If receiving a block with a past timestamp, before the most recent known
|
||||||
|
|
|
||||||
|
|
@ -271,6 +271,9 @@ private:
|
||||||
* 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 carefully 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.
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
*/
|
*/
|
||||||
bool AddToWalletIfInvolvingMe(const CTransactionRef& tx, CWalletTx::Confirmation confirm, bool fUpdate, bool rescanning_old_block) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
bool AddToWalletIfInvolvingMe(const CTransactionRef& tx, CWalletTx::Confirmation confirm, bool fUpdate, bool rescanning_old_block) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue