| 889 | } |
| 890 | |
| 891 | void 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 | |
| 901 | bool CBlockPolicyEstimator::Write(CAutoFile& fileout) const |
| 902 | { |
nothing calls this directly
no test coverage detected