| 903 | } |
| 904 | |
| 905 | bool |
| 906 | CTxMemPool::ReadFeeEstimates(CAutoFile& filein) |
| 907 | { |
| 908 | try { |
| 909 | int nVersionRequired, nVersionThatWrote; |
| 910 | filein >> nVersionRequired >> nVersionThatWrote; |
| 911 | if (nVersionRequired > CLIENT_VERSION) |
| 912 | return error("CTxMemPool::ReadFeeEstimates(): up-version (%d) fee estimate file", nVersionRequired); |
| 913 | LOCK(cs); |
| 914 | minerPolicyEstimator->Read(filein); |
| 915 | } |
| 916 | catch (const std::exception&) { |
| 917 | LogPrintf("CTxMemPool::ReadFeeEstimates(): unable to read policy estimator data (non-fatal)\n"); |
| 918 | return false; |
| 919 | } |
| 920 | return true; |
| 921 | } |
| 922 | |
| 923 | void CTxMemPool::PrioritiseTransaction(const uint256 hash, const std::string strHash, double dPriorityDelta, const CAmount& nFeeDelta) |
| 924 | { |