@@ -102,7 +102,7 @@ class CTxMemPoolEntry
102
102
const unsigned int entryHeight; // !< Chain height when entering the mempool
103
103
const bool spendsCoinbase; // !< keep track of transactions that spend a coinbase
104
104
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
106
106
LockPoints lockPoints; // !< Track the height and time at which tx was final
107
107
108
108
// Information about descendants of this transaction that are in the
@@ -135,7 +135,7 @@ class CTxMemPoolEntry
135
135
std::chrono::seconds GetTime () const { return std::chrono::seconds{nTime}; }
136
136
unsigned int GetHeight () const { return entryHeight; }
137
137
int64_t GetSigOpCost () const { return sigOpCost; }
138
- int64_t GetModifiedFee () const { return nFee + feeDelta; }
138
+ CAmount GetModifiedFee () const { return nFee + feeDelta; }
139
139
size_t DynamicMemoryUsage () const { return nUsageSize; }
140
140
const LockPoints& GetLockPoints () const { return lockPoints; }
141
141
@@ -144,8 +144,8 @@ class CTxMemPoolEntry
144
144
// Adjusts the ancestor state
145
145
void UpdateAncestorState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps, int64_t discountSize);
146
146
// 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 );
149
149
// Update the LockPoints after a reorg
150
150
void UpdateLockPoints (const LockPoints& lp);
151
151
0 commit comments