log: Clarify that failure to write fee_estimates.dat is non-fatal

This commit is contained in:
MarcoFalke 2020-12-07 14:01:19 +01:00
parent 03b1db6114
commit faefa5db5f
No known key found for this signature in database
GPG key ID: CE2B75697E69A548

View file

@ -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());
}
}