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

This commit is contained in:
Alex Morcos
2014-08-26 12:59:21 -04:00
parent b8d92236f6
commit c26649f9ed
4 changed files with 17 additions and 3 deletions

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