Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 399 Lines • ▼ Show 20 Lines | |||||
CTxMemPool::~CTxMemPool() {} | CTxMemPool::~CTxMemPool() {} | ||||
bool CTxMemPool::isSpent(const COutPoint &outpoint) const { | bool CTxMemPool::isSpent(const COutPoint &outpoint) const { | ||||
LOCK(cs); | LOCK(cs); | ||||
return mapNextTx.count(outpoint); | return mapNextTx.count(outpoint); | ||||
} | } | ||||
unsigned int CTxMemPool::GetTransactionsUpdated() const { | unsigned int CTxMemPool::GetTransactionsUpdated() const { | ||||
LOCK(cs); | |||||
return nTransactionsUpdated; | return nTransactionsUpdated; | ||||
} | } | ||||
void CTxMemPool::AddTransactionsUpdated(unsigned int n) { | void CTxMemPool::AddTransactionsUpdated(unsigned int n) { | ||||
LOCK(cs); | |||||
nTransactionsUpdated += n; | nTransactionsUpdated += n; | ||||
} | } | ||||
void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, | void CTxMemPool::addUnchecked(const CTxMemPoolEntry &entry, | ||||
setEntries &setAncestors) { | setEntries &setAncestors) { | ||||
NotifyEntryAdded(entry.GetSharedTx()); | NotifyEntryAdded(entry.GetSharedTx()); | ||||
// Add to memory pool without checking anything. | // Add to memory pool without checking anything. | ||||
// Used by AcceptToMemoryPool(), which DOES do all the appropriate checks. | // Used by AcceptToMemoryPool(), which DOES do all the appropriate checks. | ||||
▲ Show 20 Lines • Show All 1,007 Lines • Show Last 20 Lines |