mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-08 12:19:07 +02:00
refactor: Work around Werror=free-nonheap-object in AssumeCalculateMemPoolAncestors
This commit is contained in:
parent
3212d104f4
commit
faa86eeb41
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user