aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.cpp
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2015-06-30 11:14:24 -0400
committerAlex Morcos <morcos@chaincode.com>2015-11-19 21:28:01 -0500
commit71f1d9fd4ae2c2fc90d5487bdf2096f9eb5898d9 (patch)
treecbd1ea0d8de0a4216475414daf7d479187fa657a /src/txmempool.cpp
parent5945819717eb842df28cd9291a226d0505cb49d0 (diff)
downloadbitcoin-71f1d9fd4ae2c2fc90d5487bdf2096f9eb5898d9.tar.xz
Modify variable names for entry height and priority
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r--src/txmempool.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp
index ec7971c2f1..ea3aad34a3 100644
--- a/src/txmempool.cpp
+++ b/src/txmempool.cpp
@@ -19,9 +19,9 @@
using namespace std;
CTxMemPoolEntry::CTxMemPoolEntry(const CTransaction& _tx, const CAmount& _nFee,
- int64_t _nTime, double _dPriority,
- unsigned int _nHeight, bool poolHasNoInputsOf):
- tx(_tx), nFee(_nFee), nTime(_nTime), dPriority(_dPriority), nHeight(_nHeight),
+ int64_t _nTime, double _entryPriority,
+ unsigned int _entryHeight, bool poolHasNoInputsOf):
+ tx(_tx), nFee(_nFee), nTime(_nTime), entryPriority(_entryPriority), entryHeight(_entryHeight),
hadNoDependencies(poolHasNoInputsOf)
{
nTxSize = ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION);
@@ -42,8 +42,8 @@ double
CTxMemPoolEntry::GetPriority(unsigned int currentHeight) const
{
CAmount nValueIn = tx.GetValueOut()+nFee;
- double deltaPriority = ((double)(currentHeight-nHeight)*nValueIn)/nModSize;
- double dResult = dPriority + deltaPriority;
+ double deltaPriority = ((double)(currentHeight-entryHeight)*nValueIn)/nModSize;
+ double dResult = entryPriority + deltaPriority;
return dResult;
}