Track modified size in TxMemPoolEntry so that we can correctly compute priority.

This commit is contained in:
Alex Morcos
2014-09-08 11:28:46 -04:00
parent b8d92236f6
commit c26649f9ed
4 changed files with 17 additions and 3 deletions
+1
View File
@@ -31,6 +31,7 @@ private:
CTransaction tx;
int64_t nFee; // Cached to avoid expensive parent-transaction lookups
size_t nTxSize; // ... and avoid recomputing tx size
size_t nModSize; // ... and modified size for priority
int64_t nTime; // Local time when entering the mempool
double dPriority; // Priority when entering the mempool
unsigned int nHeight; // Chain height when entering the mempool