Bitcoin Core 28.99.0
P2P Digital Currency
Public Attributes | List of all members
TxOrphanage::PeerOrphanInfo Struct Reference

#include <txorphanage.h>

Public Attributes

std::set< Wtxidm_work_set
 List of transactions that should be reconsidered: added to in AddChildrenToWorkSet, removed from one-by-one with each call to GetTxToReconsider. More...
 
unsigned int m_total_usage {0}
 Total weight of orphans for which this peer is an announcer. More...
 

Detailed Description

Definition at line 128 of file txorphanage.h.

Member Data Documentation

◆ m_total_usage

unsigned int TxOrphanage::PeerOrphanInfo::m_total_usage {0}

Total weight of orphans for which this peer is an announcer.

If orphans are provided by different peers, its weight will be accounted for in each PeerOrphanInfo, so the total of all peers' m_total_usage may be larger than m_total_orphan_size. If a peer is removed as an announcer, even if the orphan still remains in the orphanage, this number will be decremented.

Definition at line 140 of file txorphanage.h.

◆ m_work_set

std::set<Wtxid> TxOrphanage::PeerOrphanInfo::m_work_set

List of transactions that should be reconsidered: added to in AddChildrenToWorkSet, removed from one-by-one with each call to GetTxToReconsider.

The wtxids may refer to transactions that are no longer present in orphanage; these are lazily removed in GetTxToReconsider.

Definition at line 133 of file txorphanage.h.


The documentation for this struct was generated from the following file: