|
|
|
@ -322,8 +322,8 @@ void CTxMemPoolEntry::UpdateAncestorState(int64_t modifySize, CAmount modifyFee,
|
|
|
|
|
assert(int(nSigOpCostWithAncestors) >= 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator) :
|
|
|
|
|
nTransactionsUpdated(0), minerPolicyEstimator(estimator)
|
|
|
|
|
CTxMemPool::CTxMemPool(CBlockPolicyEstimator* estimator)
|
|
|
|
|
: nTransactionsUpdated(0), minerPolicyEstimator(estimator)
|
|
|
|
|
{
|
|
|
|
|
_clear(); //lock free clear
|
|
|
|
|
|
|
|
|
@ -341,13 +341,11 @@ bool CTxMemPool::isSpent(const COutPoint& outpoint) const
|
|
|
|
|
|
|
|
|
|
unsigned int CTxMemPool::GetTransactionsUpdated() const
|
|
|
|
|
{
|
|
|
|
|
LOCK(cs);
|
|
|
|
|
return nTransactionsUpdated;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CTxMemPool::AddTransactionsUpdated(unsigned int n)
|
|
|
|
|
{
|
|
|
|
|
LOCK(cs);
|
|
|
|
|
nTransactionsUpdated += n;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|