Properly account for joinsplit value when deciding if a transaction should be placed in a mined block.

This commit is contained in:
Sean Bowe 2016-10-29 11:53:16 -06:00
parent 1feaefac51
commit 2b2bc69e8c
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,8 @@ CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)
dPriority += (double)nValueIn * nConf;
}
nTotalIn += tx.GetJoinSplitValueIn();
if (fMissingInputs) continue;
// Priority is sum(valuein * age) / modified_txsize