MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / ReadFeeEstimates

Method ReadFeeEstimates

src/txmempool.cpp:788–805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786}
787
788bool
789CTxMemPool::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
807void CTxMemPool::PrioritiseTransaction(const uint256 hash, const string strHash, double dPriorityDelta, const CAmount& nFeeDelta)
808{

Callers 1

AppInit2Function · 0.80

Calls 2

errorFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected