mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-28 16:43:23 +02:00
refactor: use const reference for parents in CTxMemPool::UpdateAncestorsOf
This commit is contained in:
@@ -276,7 +276,7 @@ bool CTxMemPool::CalculateMemPoolAncestors(const CTxMemPoolEntry &entry,
|
||||
|
||||
void CTxMemPool::UpdateAncestorsOf(bool add, txiter it, setEntries &setAncestors)
|
||||
{
|
||||
CTxMemPoolEntry::Parents parents = it->GetMemPoolParents();
|
||||
const CTxMemPoolEntry::Parents& parents = it->GetMemPoolParentsConst();
|
||||
// add or remove this tx as a child of each parent
|
||||
for (const CTxMemPoolEntry& parent : parents) {
|
||||
UpdateChild(mapTx.iterator_to(parent), it, add);
|
||||
|
Reference in New Issue
Block a user