Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef &_tx, const Amount _nFee, | ||||
nModFeesWithAncestors = nFee; | nModFeesWithAncestors = nFee; | ||||
nSigOpCountWithAncestors = sigOpCount; | nSigOpCountWithAncestors = sigOpCount; | ||||
} | } | ||||
size_t CTxMemPoolEntry::GetTxVirtualSize() const { | size_t CTxMemPoolEntry::GetTxVirtualSize() const { | ||||
return GetVirtualTransactionSize(nTxSize, sigOpCount); | return GetVirtualTransactionSize(nTxSize, sigOpCount); | ||||
} | } | ||||
size_t CTxMemPoolEntry::GetVirtualSizeWithDescendants() const { | uint64_t CTxMemPoolEntry::GetVirtualSizeWithDescendants() const { | ||||
// note this is distinct from the sum of descendants' individual virtual | // note this is distinct from the sum of descendants' individual virtual | ||||
// sizes, and may be smaller. | // sizes, and may be smaller. | ||||
return GetVirtualTransactionSize(nSizeWithDescendants, | return GetVirtualTransactionSize(nSizeWithDescendants, | ||||
nSigOpCountWithDescendants); | nSigOpCountWithDescendants); | ||||
} | } | ||||
size_t CTxMemPoolEntry::GetVirtualSizeWithAncestors() const { | uint64_t CTxMemPoolEntry::GetVirtualSizeWithAncestors() const { | ||||
// note this is distinct from the sum of descendants' individual virtual | // note this is distinct from the sum of ancestors' individual virtual | ||||
// sizes, and may be smaller. | // sizes, and may be smaller. | ||||
return GetVirtualTransactionSize(nSizeWithAncestors, | return GetVirtualTransactionSize(nSizeWithAncestors, | ||||
nSigOpCountWithAncestors); | nSigOpCountWithAncestors); | ||||
} | } | ||||
void CTxMemPoolEntry::UpdateFeeDelta(Amount newFeeDelta) { | void CTxMemPoolEntry::UpdateFeeDelta(Amount newFeeDelta) { | ||||
nModFeesWithDescendants += newFeeDelta - feeDelta; | nModFeesWithDescendants += newFeeDelta - feeDelta; | ||||
nModFeesWithAncestors += newFeeDelta - feeDelta; | nModFeesWithAncestors += newFeeDelta - feeDelta; | ||||
▲ Show 20 Lines • Show All 1,354 Lines • Show Last 20 Lines |