@@ -102,7 +102,7 @@ class CTxMemPoolEntry
102102 const unsigned int entryHeight; // !< Chain height when entering the mempool
103103 const bool spendsCoinbase; // !< keep track of transactions that spend a coinbase
104104 const int64_t sigOpCost; // !< Total sigop cost
105- int64_t feeDelta{0 }; // !< Used for determining the priority of the transaction for mining in a block
105+ CAmount feeDelta{0 }; // !< Used for determining the priority of the transaction for mining in a block
106106 LockPoints lockPoints; // !< Track the height and time at which tx was final
107107
108108 // Information about descendants of this transaction that are in the
@@ -135,7 +135,7 @@ class CTxMemPoolEntry
135135 std::chrono::seconds GetTime () const { return std::chrono::seconds{nTime}; }
136136 unsigned int GetHeight () const { return entryHeight; }
137137 int64_t GetSigOpCost () const { return sigOpCost; }
138- int64_t GetModifiedFee () const { return nFee + feeDelta; }
138+ CAmount GetModifiedFee () const { return nFee + feeDelta; }
139139 size_t DynamicMemoryUsage () const { return nUsageSize; }
140140 const LockPoints& GetLockPoints () const { return lockPoints; }
141141
@@ -144,8 +144,8 @@ class CTxMemPoolEntry
144144 // Adjusts the ancestor state
145145 void UpdateAncestorState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps, int64_t discountSize);
146146 // Updates the fee delta used for mining priority score, and the
147- // modified fees with descendants.
148- void UpdateFeeDelta (int64_t feeDelta );
147+ // modified fees with descendants/ancestors .
148+ void UpdateFeeDelta (CAmount newFeeDelta );
149149 // Update the LockPoints after a reorg
150150 void UpdateLockPoints (const LockPoints& lp);
151151
0 commit comments