@@ -101,7 +101,7 @@ class CTxMemPoolEntry
101
101
const unsigned int entryHeight; // !< Chain height when entering the mempool
102
102
const bool spendsCoinbase; // !< keep track of transactions that spend a coinbase
103
103
const int64_t sigOpCost; // !< Total sigop cost
104
- int64_t feeDelta{0 }; // !< Used for determining the priority of the transaction for mining in a block
104
+ CAmount feeDelta{0 }; // !< Used for determining the priority of the transaction for mining in a block
105
105
LockPoints lockPoints; // !< Track the height and time at which tx was final
106
106
107
107
// Information about descendants of this transaction that are in the
@@ -131,7 +131,7 @@ class CTxMemPoolEntry
131
131
std::chrono::seconds GetTime () const { return std::chrono::seconds{nTime}; }
132
132
unsigned int GetHeight () const { return entryHeight; }
133
133
int64_t GetSigOpCost () const { return sigOpCost; }
134
- int64_t GetModifiedFee () const { return nFee + feeDelta; }
134
+ CAmount GetModifiedFee () const { return nFee + feeDelta; }
135
135
size_t DynamicMemoryUsage () const { return nUsageSize; }
136
136
const LockPoints& GetLockPoints () const { return lockPoints; }
137
137
@@ -140,8 +140,8 @@ class CTxMemPoolEntry
140
140
// Adjusts the ancestor state
141
141
void UpdateAncestorState (int64_t modifySize, CAmount modifyFee, int64_t modifyCount, int64_t modifySigOps);
142
142
// Updates the fee delta used for mining priority score, and the
143
- // modified fees with descendants.
144
- void UpdateFeeDelta (int64_t feeDelta );
143
+ // modified fees with descendants/ancestors .
144
+ void UpdateFeeDelta (CAmount newFeeDelta );
145
145
// Update the LockPoints after a reorg
146
146
void UpdateLockPoints (const LockPoints& lp);
147
147
0 commit comments