aboutsummaryrefslogtreecommitdiff
path: root/src/policy
diff options
context:
space:
mode:
Diffstat (limited to 'src/policy')
-rw-r--r--src/policy/fees.cpp4
-rw-r--r--src/policy/rbf.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp
index 9557594622..654c4cf0ce 100644
--- a/src/policy/fees.cpp
+++ b/src/policy/fees.cpp
@@ -1044,8 +1044,8 @@ void CBlockPolicyEstimator::FlushUnconfirmed()
std::chrono::hours CBlockPolicyEstimator::GetFeeEstimatorFileAge()
{
- auto file_time = std::filesystem::last_write_time(m_estimation_filepath);
- auto now = std::filesystem::file_time_type::clock::now();
+ auto file_time{fs::last_write_time(m_estimation_filepath)};
+ auto now{fs::file_time_type::clock::now()};
return std::chrono::duration_cast<std::chrono::hours>(now - file_time);
}
diff --git a/src/policy/rbf.cpp b/src/policy/rbf.cpp
index d032b74008..76ab2b1a96 100644
--- a/src/policy/rbf.cpp
+++ b/src/policy/rbf.cpp
@@ -12,6 +12,7 @@
#include <tinyformat.h>
#include <txmempool.h>
#include <uint256.h>
+#include <util/check.h>
#include <util/moneystr.h>
#include <util/rbf.h>
@@ -35,7 +36,7 @@ RBFTransactionState IsRBFOptIn(const CTransaction& tx, const CTxMemPool& pool)
// If all the inputs have nSequence >= maxint-1, it still might be
// signaled for RBF if any unconfirmed parents have signaled.
- const CTxMemPoolEntry entry{*pool.mapTx.find(tx.GetHash())};
+ const auto& entry{*Assert(pool.GetEntry(tx.GetHash()))};
auto ancestors{pool.AssumeCalculateMemPoolAncestors(__func__, entry, CTxMemPool::Limits::NoLimits(),
/*fSearchForParents=*/false)};