diff options
author | Alex Morcos <morcos@chaincode.com> | 2014-08-26 12:59:21 -0400 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2014-09-08 11:28:46 -0400 |
commit | c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc (patch) | |
tree | 96c35a3632b724ad67ee4d43d0be0ea0df04a8db /src/txmempool.h | |
parent | b8d92236f61699846f67d8ce6cb55458a46f9de1 (diff) | |
download | bitcoin-c26649f9ed03fa9505e44aaf7f8cfdaa81f734cc.tar.xz |
Track modified size in TxMemPoolEntry so that we can correctly compute priority.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 360364d8b0..b9d50ee0bc 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -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 |