| 786 | } |
| 787 | |
| 788 | bool |
| 789 | CTxMemPool::ReadFeeEstimates(CAutoFile& filein) |
| 790 | { |
| 791 | try { |
| 792 | int nVersionRequired, nVersionThatWrote; |
| 793 | filein >> nVersionRequired >> nVersionThatWrote; |
| 794 | if (nVersionRequired > CLIENT_VERSION) |
| 795 | return error("CTxMemPool::ReadFeeEstimates(): up-version (%d) fee estimate file", nVersionRequired); |
| 796 | |
| 797 | LOCK(cs); |
| 798 | minerPolicyEstimator->Read(filein); |
| 799 | } |
| 800 | catch (const std::exception&) { |
| 801 | LogPrintf("CTxMemPool::ReadFeeEstimates(): unable to read policy estimator data (non-fatal)"); |
| 802 | return false; |
| 803 | } |
| 804 | return true; |
| 805 | } |
| 806 | |
| 807 | void CTxMemPool::PrioritiseTransaction(const uint256 hash, const string strHash, double dPriorityDelta, const CAmount& nFeeDelta) |
| 808 | { |