@ -813,7 +813,7 @@ std::string FormatStateMessage(const CValidationState &state)
@@ -813,7 +813,7 @@ std::string FormatStateMessage(const CValidationState &state)
}
bool AcceptToMemoryPoolWorker ( CTxMemPool & pool , CValidationState & state , const CTransaction & tx , bool fLimitFree ,
bool * pfMissingInputs , bool fOverrideMempoolLimit , bool fReject AbsurdFee,
bool * pfMissingInputs , bool fOverrideMempoolLimit , const CAmount n AbsurdFee,
std : : vector < uint256 > & vHashTxnToUncache )
{
const uint256 hash = tx . GetHash ( ) ;
@ -1002,10 +1002,10 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state, const C
@@ -1002,10 +1002,10 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state, const C
dFreeCount + = nSize ;
}
if ( fReject AbsurdFee & & nFees > maxTx Fee)
if ( n AbsurdFee & & nFees > nAbsurd Fee)
return state . Invalid ( false ,
REJECT_HIGHFEE , " absurdly-high-fee " ,
strprintf ( " %d > %d " , nFees , maxTx Fee) ) ;
strprintf ( " %d > %d " , nFees , nAbsurd Fee) ) ;
// Calculate in-mempool ancestors, up to a limit.
CTxMemPool : : setEntries setAncestors ;
@ -1220,10 +1220,10 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state, const C
@@ -1220,10 +1220,10 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState &state, const C
}
bool AcceptToMemoryPool ( CTxMemPool & pool , CValidationState & state , const CTransaction & tx , bool fLimitFree ,
bool * pfMissingInputs , bool fOverrideMempoolLimit , bool fReject AbsurdFee)
bool * pfMissingInputs , bool fOverrideMempoolLimit , const CAmount n AbsurdFee)
{
std : : vector < uint256 > vHashTxToUncache ;
bool res = AcceptToMemoryPoolWorker ( pool , state , tx , fLimitFree , pfMissingInputs , fOverrideMempoolLimit , fReject AbsurdFee, vHashTxToUncache ) ;
bool res = AcceptToMemoryPoolWorker ( pool , state , tx , fLimitFree , pfMissingInputs , fOverrideMempoolLimit , n AbsurdFee, vHashTxToUncache ) ;
if ( ! res ) {
BOOST_FOREACH ( const uint256 & hashTx , vHashTxToUncache )
pcoinsTip - > Uncache ( hashTx ) ;