FIX: correctly measure size of priority block

(cherry picked from commit bitcoin/bitcoin@c2dd5a3c39)
This commit is contained in:
Alex Morcos 2016-06-01 12:29:03 -04:00 committed by Jack Grigg
parent 43ce65399c
commit 05a1c41aac
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ void BlockAssembler::addPriorityTxs()
// If now that this txs is added we've surpassed our desired priority size
// or have dropped below the AllowFreeThreshold, then we're done adding priority txs
if (nBlockSize + iter->GetTxSize() >= nBlockPrioritySize || !AllowFree(actualPriority)) {
if (nBlockSize >= nBlockPrioritySize || !AllowFree(actualPriority)) {
return;
}