mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-20 14:05:23 +01:00
refactor: use const reference for parents in CTxMemPool::UpdateAncestorsOf
This commit is contained in:
parent
577b0ffd2e
commit
9947ce6262
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue