diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 8c818ebc4d..5aa2f9cd8e 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -264,8 +264,8 @@ CTxMemPool::setEntries CTxMemPool::AssumeCalculateMemPoolAncestors( const Limits& limits, bool fSearchForParents /* = true */) const { - auto result{Assume(CalculateMemPoolAncestors(entry, limits, fSearchForParents))}; - if (!result) { + auto result{CalculateMemPoolAncestors(entry, limits, fSearchForParents)}; + if (!Assume(result)) { LogPrintLevel(BCLog::MEMPOOL, BCLog::Level::Error, "%s: CalculateMemPoolAncestors failed unexpectedly, continuing with empty ancestor set (%s)\n", calling_fn_name, util::ErrorString(result).original); }