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