aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-01-05 19:52:52 +0100
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-01-05 19:48:14 +0100
commitfaa86eeb418ac5a28e7c4aa6cd13f607e151fad8 (patch)
tree0d07563f5ea4ef6064259ec8755a59564b5d23fc /src/txmempool.cpp
parent3212d104f4ac733660e7db9936fdc8fb7de4edb7 (diff)
refactor: Work around Werror=free-nonheap-object in AssumeCalculateMemPoolAncestors
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index c2a8ed0e27..aa04f8a4d0 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);
}