mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 16:52:21 +02:00
Remove mapLinks in favor of entry inlined structs with iterator type erasure
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user