MCPcopy Create free account
hub / github.com/ElementsProject/elements / Flush

Method Flush

src/policy/fees.cpp:891–899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

889}
890
891void CBlockPolicyEstimator::Flush() {
892 FlushUnconfirmed();
893
894 fs::path est_filepath = gArgs.GetDataDirNet() / FEE_ESTIMATES_FILENAME;
895 CAutoFile est_file(fsbridge::fopen(est_filepath, "wb"), SER_DISK, CLIENT_VERSION);
896 if (est_file.IsNull() || !Write(est_file)) {
897 LogPrintf("Failed to write fee estimates to %s. Continue anyway.\n", fs::PathToString(est_filepath));
898 }
899}
900
901bool CBlockPolicyEstimator::Write(CAutoFile& fileout) const
902{

Callers

nothing calls this directly

Calls 3

fopenFunction · 0.85
PathToStringFunction · 0.85
IsNullMethod · 0.45

Tested by

no test coverage detected