mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-20 12:00:52 +00:00
CreateNewBlock was not adding in transaction fees.
This commit is contained in:
parent
2bc4fd609c
commit
68649bef93
@ -3073,8 +3073,8 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
|||||||
if (!tx.FetchInputs(txdb, mapTestPoolTmp, false, true, mapInputs, fInvalid))
|
if (!tx.FetchInputs(txdb, mapTestPoolTmp, false, true, mapInputs, fInvalid))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int64 nFees = tx.GetValueIn(mapInputs)-tx.GetValueOut();
|
int64 nTxFees = tx.GetValueIn(mapInputs)-tx.GetValueOut();
|
||||||
if (nFees < nMinFee)
|
if (nTxFees < nMinFee)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
nTxSigOps += tx.GetP2SHSigOpCount(mapInputs);
|
nTxSigOps += tx.GetP2SHSigOpCount(mapInputs);
|
||||||
@ -3091,6 +3091,7 @@ CBlock* CreateNewBlock(CReserveKey& reservekey)
|
|||||||
nBlockSize += nTxSize;
|
nBlockSize += nTxSize;
|
||||||
++nBlockTx;
|
++nBlockTx;
|
||||||
nBlockSigOps += nTxSigOps;
|
nBlockSigOps += nTxSigOps;
|
||||||
|
nFees += nTxFees;
|
||||||
|
|
||||||
// Add transactions that depend on this one to the priority queue
|
// Add transactions that depend on this one to the priority queue
|
||||||
uint256 hash = tx.GetHash();
|
uint256 hash = tx.GetHash();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user