Skip to content

Commit 2cfe379

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#26823: refactor: Work around Werror=free-nonheap-object in AssumeCalculateMemPoolAncestors
faa86ee refactor: Work around Werror=free-nonheap-object in AssumeCalculateMemPoolAncestors (MarcoFalke) Pull request description: This works around the s390x gcc bug mentioned in bitcoin/bitcoin#26820 ACKs for top commit: achow101: ACK faa86ee Tree-SHA512: 041d5daa157ea1856b0a8027181085d70624f5f8822049ace9963e90c653bbb8c91d1f16b8a5bf460687eb4ed13f1db72e3885a511aadbad6dede93d9f9ccd6d
2 parents b4fb0a3 + faa86ee commit 2cfe379

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)