1919#include " version.h"
2020
2121CTxMemPoolEntry::CTxMemPoolEntry (const CTransactionRef& _tx, const CAmount& _nFee,
22- int64_t _nTime, double _entryPriority, unsigned int _entryHeight,
23- CAmount _inChainInputValue,
22+ int64_t _nTime, unsigned int _entryHeight,
2423 bool _spendsCoinbase, int64_t _sigOpsCost, LockPoints lp):
25- tx(_tx), nFee(_nFee), nTime(_nTime), entryPriority(_entryPriority), entryHeight(_entryHeight),
26- inChainInputValue(_inChainInputValue),
24+ tx(_tx), nFee(_nFee), nTime(_nTime), entryHeight(_entryHeight),
2725 spendsCoinbase(_spendsCoinbase), sigOpCost(_sigOpsCost), lockPoints(lp)
2826{
2927 nTxWeight = GetTransactionWeight (*tx);
30- nModSize = tx->CalculateModifiedSize (GetTxSize ());
3128 nUsageSize = RecursiveDynamicUsage (*tx) + memusage::DynamicUsage (tx);
3229
3330 nCountWithDescendants = 1 ;
3431 nSizeWithDescendants = GetTxSize ();
3532 nModFeesWithDescendants = nFee;
36- CAmount nValueIn = tx->GetValueOut ()+nFee;
37- assert (inChainInputValue <= nValueIn);
3833
3934 feeDelta = 0 ;
4035
@@ -49,16 +44,6 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTxMemPoolEntry& other)
4944 *this = other;
5045}
5146
52- double
53- CTxMemPoolEntry::GetPriority (unsigned int currentHeight) const
54- {
55- double deltaPriority = ((double )(currentHeight-entryHeight)*inChainInputValue)/nModSize;
56- double dResult = entryPriority + deltaPriority;
57- if (dResult < 0 ) // This should only happen if it was called with a height below entry height
58- dResult = 0 ;
59- return dResult;
60- }
61-
6247void CTxMemPoolEntry::UpdateFeeDelta (int64_t newFeeDelta)
6348{
6449 nModFeesWithDescendants += newFeeDelta - feeDelta;
0 commit comments