aboutsummaryrefslogtreecommitdiff
path: root/src/policy/fees.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2020-12-07 14:01:19 +0100
committerMarcoFalke <falke.marco@gmail.com>2020-12-07 14:03:22 +0100
commitfaefa5db5f1d95b772873f4429e8a8fbb4e71cf3 (patch)
treec7f7c78e22fc515a0ded854980a1ee9e7082e7a0 /src/policy/fees.cpp
parent03b1db6114958a9f8edf533f5280df4916d33665 (diff)
log: Clarify that failure to write fee_estimates.dat is non-fatal
Diffstat (limited to 'src/policy/fees.cpp')
-rw-r--r--src/policy/fees.cpp4
1 files changed, 3 insertions, 1 deletions
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 <policy/fees.h>
#include <clientversion.h>
+#include <fs.h>
+#include <logging.h>
#include <streams.h>
#include <txmempool.h>
#include <util/system.h>
@@ -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());
}
}