diff --git a/src/txmempool.cpp b/src/txmempool.cpp --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -260,8 +260,7 @@ } else { // If we're not searching for parents, we require this to be an entry in // the mempool already. - txiter it = mapTx.iterator_to(entry); - staged_ancestors = it->GetMemPoolParentsConst(); + staged_ancestors = entry.GetMemPoolParentsConst(); } return CalculateAncestorsAndCheckLimits(