Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | if (fSearchForParents) { | ||||
strprintf("too many unconfirmed parents [limit: %u]", | strprintf("too many unconfirmed parents [limit: %u]", | ||||
limitAncestorCount); | limitAncestorCount); | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} else { | } else { | ||||
// If we're not searching for parents, we require this to be an entry in | // If we're not searching for parents, we require this to be an entry in | ||||
// the mempool already. | // the mempool already. | ||||
txiter it = mapTx.iterator_to(entry); | staged_ancestors = entry.GetMemPoolParentsConst(); | ||||
staged_ancestors = it->GetMemPoolParentsConst(); | |||||
} | } | ||||
return CalculateAncestorsAndCheckLimits( | return CalculateAncestorsAndCheckLimits( | ||||
entry.GetTxSize(), /* entry_count */ 1, setAncestors, staged_ancestors, | entry.GetTxSize(), /* entry_count */ 1, setAncestors, staged_ancestors, | ||||
limitAncestorCount, limitAncestorSize, limitDescendantCount, | limitAncestorCount, limitAncestorSize, limitDescendantCount, | ||||
limitDescendantSize, errString); | limitDescendantSize, errString); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,116 Lines • Show Last 20 Lines |