|
|
@ -392,7 +392,7 @@ void CTxMemPool::AddTransactionsUpdated(unsigned int n) |
|
|
|
nTransactionsUpdated += n; |
|
|
|
nTransactionsUpdated += n; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, setEntries &setAncestors, bool fCurrentEstimate) |
|
|
|
bool CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, setEntries &setAncestors, bool validFeeEstimate) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Add to memory pool without checking anything.
|
|
|
|
// Add to memory pool without checking anything.
|
|
|
|
// Used by main.cpp AcceptToMemoryPool(), which DOES do
|
|
|
|
// Used by main.cpp AcceptToMemoryPool(), which DOES do
|
|
|
@ -442,7 +442,7 @@ bool CTxMemPool::addUnchecked(const uint256& hash, const CTxMemPoolEntry &entry, |
|
|
|
|
|
|
|
|
|
|
|
nTransactionsUpdated++; |
|
|
|
nTransactionsUpdated++; |
|
|
|
totalTxSize += entry.GetTxSize(); |
|
|
|
totalTxSize += entry.GetTxSize(); |
|
|
|
minerPolicyEstimator->processTransaction(entry, fCurrentEstimate); |
|
|
|
minerPolicyEstimator->processTransaction(entry, validFeeEstimate); |
|
|
|
|
|
|
|
|
|
|
|
vTxHashes.emplace_back(tx.GetWitnessHash(), newit); |
|
|
|
vTxHashes.emplace_back(tx.GetWitnessHash(), newit); |
|
|
|
newit->vTxHashesIdx = vTxHashes.size() - 1; |
|
|
|
newit->vTxHashesIdx = vTxHashes.size() - 1; |
|
|
@ -1015,14 +1015,14 @@ int CTxMemPool::Expire(int64_t time) { |
|
|
|
return stage.size(); |
|
|
|
return stage.size(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool CTxMemPool::addUnchecked(const uint256&hash, const CTxMemPoolEntry &entry, bool fCurrentEstimate) |
|
|
|
bool CTxMemPool::addUnchecked(const uint256&hash, const CTxMemPoolEntry &entry, bool validFeeEstimate) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LOCK(cs); |
|
|
|
LOCK(cs); |
|
|
|
setEntries setAncestors; |
|
|
|
setEntries setAncestors; |
|
|
|
uint64_t nNoLimit = std::numeric_limits<uint64_t>::max(); |
|
|
|
uint64_t nNoLimit = std::numeric_limits<uint64_t>::max(); |
|
|
|
std::string dummy; |
|
|
|
std::string dummy; |
|
|
|
CalculateMemPoolAncestors(entry, setAncestors, nNoLimit, nNoLimit, nNoLimit, nNoLimit, dummy); |
|
|
|
CalculateMemPoolAncestors(entry, setAncestors, nNoLimit, nNoLimit, nNoLimit, nNoLimit, dummy); |
|
|
|
return addUnchecked(hash, entry, setAncestors, fCurrentEstimate); |
|
|
|
return addUnchecked(hash, entry, setAncestors, validFeeEstimate); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add) |
|
|
|
void CTxMemPool::UpdateChild(txiter entry, txiter child, bool add) |
|
|
|