mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-30 05:52:33 +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,
|
const Limits& limits,
|
||||||
bool fSearchForParents /* = true */) const
|
bool fSearchForParents /* = true */) const
|
||||||
{
|
{
|
||||||
auto result{Assume(CalculateMemPoolAncestors(entry, limits, fSearchForParents))};
|
auto result{CalculateMemPoolAncestors(entry, limits, fSearchForParents)};
|
||||||
if (!result) {
|
if (!Assume(result)) {
|
||||||
LogPrintLevel(BCLog::MEMPOOL, BCLog::Level::Error, "%s: CalculateMemPoolAncestors failed unexpectedly, continuing with empty ancestor set (%s)\n",
|
LogPrintLevel(BCLog::MEMPOOL, BCLog::Level::Error, "%s: CalculateMemPoolAncestors failed unexpectedly, continuing with empty ancestor set (%s)\n",
|
||||||
calling_fn_name, util::ErrorString(result).original);
|
calling_fn_name, util::ErrorString(result).original);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user