mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 15:32:34 +02:00
mempool: Improve comments for [GS]etLoadTried
Also change the param name for SetLoadTried to load_tried.
This commit is contained in:
parent
813962da0b
commit
f9e8e5719f
@ -1216,8 +1216,8 @@ bool CTxMemPool::GetLoadTried() const
|
|||||||
return m_load_tried;
|
return m_load_tried;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CTxMemPool::SetLoadTried(bool loaded)
|
void CTxMemPool::SetLoadTried(bool load_tried)
|
||||||
{
|
{
|
||||||
LOCK(cs);
|
LOCK(cs);
|
||||||
m_load_tried = loaded;
|
m_load_tried = load_tried;
|
||||||
}
|
}
|
||||||
|
@ -728,11 +728,17 @@ public:
|
|||||||
*/
|
*/
|
||||||
void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize = nullptr, CAmount* ancestorfees = nullptr) const;
|
void GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* ancestorsize = nullptr, CAmount* ancestorfees = nullptr) const;
|
||||||
|
|
||||||
/** @returns true if the mempool is fully loaded */
|
/**
|
||||||
|
* @returns true if we've made an attempt to load the mempool regardless of
|
||||||
|
* whether the attempt was successful or not
|
||||||
|
*/
|
||||||
bool GetLoadTried() const;
|
bool GetLoadTried() const;
|
||||||
|
|
||||||
/** Sets the current loaded state */
|
/**
|
||||||
void SetLoadTried(bool loaded);
|
* Set whether or not we've made an attempt to load the mempool (regardless
|
||||||
|
* of whether the attempt was successful or not)
|
||||||
|
*/
|
||||||
|
void SetLoadTried(bool load_tried);
|
||||||
|
|
||||||
unsigned long size() const
|
unsigned long size() const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user