4574@@ -4572,8 +4575,8 @@ bool LoadMempool(CTxMemPool& pool, CChainState& active_chainstate, FopenFn mocka
4575 }
4576 if (nTime > nNow - nExpiryTimeout) {
4577 LOCK(cs_main);
4578- if (AcceptToMemoryPool(pool, active_chainstate, tx, nTime, /* bypass_limits= */ false,
4579- /* test_accept= */ false).m_result_type == MempoolAcceptResult::ResultType::VALID) {
4580+ auto accepted = AcceptToMemoryPool(active_chainstate, tx, nTime, /* bypass_limits= */ false, /* test_accept= */ false);
0 const auto& accepted = AcceptToMemoryPool(active_chainstate, tx, nTime, /*bypass_limits=*/false, /*test_accept=*/false);
- it may be preferable to use reference to const for read-only memoization of a
MempoolAcceptResult
class object
- named arguments format compatible with clang-tidy verification
Feel free to ignore.