Skip to content

Commit faa86ee

Browse files
author
MarcoFalke
committed
refactor: Work around Werror=free-nonheap-object in AssumeCalculateMemPoolAncestors
1 parent 3212d10 commit faa86ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/txmempool.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ CTxMemPool::setEntries CTxMemPool::AssumeCalculateMemPoolAncestors(
260260
const Limits& limits,
261261
bool fSearchForParents /* = true */) const
262262
{
263-
auto result{Assume(CalculateMemPoolAncestors(entry, limits, fSearchForParents))};
264-
if (!result) {
263+
auto result{CalculateMemPoolAncestors(entry, limits, fSearchForParents)};
264+
if (!Assume(result)) {
265265
LogPrintLevel(BCLog::MEMPOOL, BCLog::Level::Error, "%s: CalculateMemPoolAncestors failed unexpectedly, continuing with empty ancestor set (%s)\n",
266266
calling_fn_name, util::ErrorString(result).original);
267267
}

0 commit comments

Comments
 (0)