diff --git a/src/txmempool.cpp b/src/txmempool.cpp index c2a8ed0e273..aa04f8a4d06 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -260,8 +260,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); }