Skip to content

Commit faefa5d

Browse files
author
MarcoFalke
committed
log: Clarify that failure to write fee_estimates.dat is non-fatal
1 parent 03b1db6 commit faefa5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/policy/fees.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include <policy/fees.h>
77

88
#include <clientversion.h>
9+
#include <fs.h>
10+
#include <logging.h>
911
#include <streams.h>
1012
#include <txmempool.h>
1113
#include <util/system.h>
@@ -872,7 +874,7 @@ void CBlockPolicyEstimator::Flush() {
872874
fs::path est_filepath = GetDataDir() / FEE_ESTIMATES_FILENAME;
873875
CAutoFile est_file(fsbridge::fopen(est_filepath, "wb"), SER_DISK, CLIENT_VERSION);
874876
if (est_file.IsNull() || !Write(est_file)) {
875-
LogPrintf("Failed to write fee estimates to %s\n", est_filepath.string());
877+
LogPrintf("Failed to write fee estimates to %s. Continue anyway.\n", est_filepath.string());
876878
}
877879
}
878880

0 commit comments

Comments
 (0)