Add explicit fee field to transaction

This commit is contained in:
Matt Corallo 2016-03-18 22:26:13 -07:00 committed by Gregory Sanders
parent fc86bc95c2
commit b8264355f1
32 changed files with 705 additions and 666 deletions

View file

@ -33,9 +33,10 @@ CTxMemPoolEntry::CTxMemPoolEntry(const CTransactionRef& _tx, const CAmount& _nFe
nCountWithDescendants = 1;
nSizeWithDescendants = GetTxSize();
nModFeesWithDescendants = nFee;
/* Unused and impossible to validate with confidential values anyways
CAmount nValueIn = tx->GetValueOut()+nFee;
assert(inChainInputValue <= nValueIn);
*/
feeDelta = 0;
nCountWithAncestors = 1;