From 2b2bc69e8cead1431aec3066c694a8f2364a5b61 Mon Sep 17 00:00:00 2001 From: Sean Bowe Date: Sat, 29 Oct 2016 11:53:16 -0600 Subject: [PATCH] Properly account for joinsplit value when deciding if a transaction should be placed in a mined block. --- src/miner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/miner.cpp b/src/miner.cpp index bde9babd5..9289a9f63 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -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