diff options
author | Jeremy Rubin <j@rubin.io> | 2020-01-21 13:48:57 -0800 |
---|---|---|
committer | Jeremy Rubin <j@rubin.io> | 2020-09-04 09:46:44 -0700 |
commit | 46d955d196043cc297834baeebce31ff778dff80 (patch) | |
tree | d150833644522ec9070c75c845da4fe58eb30a1d /src/net_processing.cpp | |
parent | 23d3ae7accfc690298b1b0bac9615155f485c5ad (diff) |
Remove mapLinks in favor of entry inlined structs with iterator type erasure
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index ce4ac3cd75..7057610434 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1776,11 +1776,11 @@ void static ProcessGetData(CNode& pfrom, const CChainParams& chainparams, CConnm LOCK(mempool.cs); auto txiter = mempool.GetIter(tx->GetHash()); if (txiter) { - const CTxMemPool::setEntries& parents = mempool.GetMemPoolParents(*txiter); + const CTxMemPoolEntry::Parents& parents = (*txiter)->GetMemPoolParentsConst(); parent_ids_to_add.reserve(parents.size()); - for (CTxMemPool::txiter parent_iter : parents) { - if (parent_iter->GetTime() > now - UNCONDITIONAL_RELAY_DELAY) { - parent_ids_to_add.push_back(parent_iter->GetTx().GetHash()); + for (const CTxMemPoolEntry& parent : parents) { + if (parent.GetTime() > now - UNCONDITIONAL_RELAY_DELAY) { + parent_ids_to_add.push_back(parent.GetTx().GetHash()); } } } |