mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-04 16:32:32 +02:00
log: Clarify that failure to write fee_estimates.dat is non-fatal
This commit is contained in:
parent
03b1db6114
commit
faefa5db5f
@ -6,6 +6,8 @@
|
|||||||
#include <policy/fees.h>
|
#include <policy/fees.h>
|
||||||
|
|
||||||
#include <clientversion.h>
|
#include <clientversion.h>
|
||||||
|
#include <fs.h>
|
||||||
|
#include <logging.h>
|
||||||
#include <streams.h>
|
#include <streams.h>
|
||||||
#include <txmempool.h>
|
#include <txmempool.h>
|
||||||
#include <util/system.h>
|
#include <util/system.h>
|
||||||
@ -872,7 +874,7 @@ void CBlockPolicyEstimator::Flush() {
|
|||||||
fs::path est_filepath = GetDataDir() / FEE_ESTIMATES_FILENAME;
|
fs::path est_filepath = GetDataDir() / FEE_ESTIMATES_FILENAME;
|
||||||
CAutoFile est_file(fsbridge::fopen(est_filepath, "wb"), SER_DISK, CLIENT_VERSION);
|
CAutoFile est_file(fsbridge::fopen(est_filepath, "wb"), SER_DISK, CLIENT_VERSION);
|
||||||
if (est_file.IsNull() || !Write(est_file)) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user