diff options
author | Anthony Towns <aj@erisian.com.au> | 2021-03-25 14:13:45 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2022-11-29 09:03:57 +1000 |
commit | a4fe09973aa82210b98dcb4e4e9f11ef59780f9b (patch) | |
tree | 5dfbdc1a79d3cd27c065ba4c9af1c8cab628b7ba /src/txorphanage.h | |
parent | d415b7261c05dafbc3e65eea72d270b2bed0958b (diff) |
txorphanage: index workset by originating peer
Diffstat (limited to 'src/txorphanage.h')
-rw-r--r-- | src/txorphanage.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/txorphanage.h b/src/txorphanage.h index 551502d325..e8767fddc5 100644 --- a/src/txorphanage.h +++ b/src/txorphanage.h @@ -47,8 +47,8 @@ public: /** Limit the orphanage to the given maximum */ void LimitOrphans(unsigned int max_orphans) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex); - /** Add any orphans that list a particular tx as a parent into a peer's work set */ - void AddChildrenToWorkSet(const CTransaction& tx, NodeId peer) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex); + /** Add any orphans that list a particular tx as a parent into the from peer's work set */ + void AddChildrenToWorkSet(const CTransaction& tx) EXCLUSIVE_LOCKS_REQUIRED(!m_mutex);; /** Return how many entries exist in the orphange */ size_t Size() EXCLUSIVE_LOCKS_REQUIRED(!m_mutex) @@ -72,7 +72,7 @@ protected: * -maxorphantx/DEFAULT_MAX_ORPHAN_TRANSACTIONS */ std::map<uint256, OrphanTx> m_orphans GUARDED_BY(m_mutex); - /** Which peer provided a parent tx of orphans that need to be reconsidered */ + /** Which peer provided the orphans that need to be reconsidered */ std::map<NodeId, std::set<uint256>> m_peer_work_set GUARDED_BY(m_mutex); using OrphanMap = decltype(m_orphans); |