diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-14 11:28:42 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-09-14 18:58:37 +0200 |
commit | fada2f91108a56cc5c447bd6b6fac411e4d5cdca (patch) | |
tree | 57b132108219efc501adcb920d19a431769be07b /src/policy | |
parent | f5c5ddafbcaad7225312cb032b108a3527f0ac0f (diff) | |
download | bitcoin-fada2f91108a56cc5c447bd6b6fac411e4d5cdca.tar.xz |
refactor: Replace <filesystem> with <util/fs.h>
All code in this repo uses <util/fs.h>, except for a few lines. This is
confusing and potentially dangerous, if the safe <util/fs.h> wrappers
are not used.
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/fees.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 553c88fddc..63276554c9 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -1031,8 +1031,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); } |