From faefa5db5f1d95b772873f4429e8a8fbb4e71cf3 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 7 Dec 2020 14:01:19 +0100 Subject: [PATCH] log: Clarify that failure to write fee_estimates.dat is non-fatal --- src/policy/fees.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index f6e378866c..1a57ddeee9 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -6,6 +6,8 @@ #include #include +#include +#include #include #include #include @@ -872,7 +874,7 @@ void CBlockPolicyEstimator::Flush() { fs::path est_filepath = GetDataDir() / FEE_ESTIMATES_FILENAME; CAutoFile est_file(fsbridge::fopen(est_filepath, "wb"), SER_DISK, CLIENT_VERSION); if (est_file.IsNull() || !Write(est_file)) { - LogPrintf("Failed to write fee estimates to %s\n", est_filepath.string()); + LogPrintf("Failed to write fee estimates to %s. Continue anyway.\n", est_filepath.string()); } }