Refactors in anticipation of blinded values

This commit is contained in:
Luke Dashjr 2015-05-20 05:10:07 +00:00 committed by Matt Corallo
parent 20339a9b92
commit b05e98bc9c
14 changed files with 203 additions and 77 deletions

View file

@ -40,10 +40,15 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTxMemPoolEntry& other)
double
CTxMemPoolEntry::GetPriority(unsigned int currentHeight) const
{
#if 0 // FIXME
CAmount nValueIn = tx.GetValueOut()+nFee;
double deltaPriority = ((double)(currentHeight-nHeight)*nValueIn)/nModSize;
double dResult = dPriority + deltaPriority;
return dResult;
#else
// I'm pretty sure this logic is broken anyway, so I'm not even going to try to fix it now
return dPriority;
#endif
}
/**