MCPcopy Create free account
hub / github.com/LUX-Core/lux / ReadFeeEstimates

Method ReadFeeEstimates

src/txmempool.cpp:905–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905bool
906CTxMemPool::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
923void CTxMemPool::PrioritiseTransaction(const uint256 hash, const std::string strHash, double dPriorityDelta, const CAmount& nFeeDelta)
924{

Callers 1

AppInit2Function · 0.80

Calls 2

errorFunction · 0.85
ReadMethod · 0.45

Tested by

no test coverage detected