mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Refactors in anticipation of blinded values
This commit is contained in:
parent
20339a9b92
commit
b05e98bc9c
14 changed files with 203 additions and 77 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue