Skip to content

Commit c2dd5a3

Browse files
committed
FIX: correctly measure size of priority block
1 parent a278764 commit c2dd5a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/miner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void BlockAssembler::addPriorityTxs()
352352

353353
// If now that this txs is added we've surpassed our desired priority size
354354
// or have dropped below the AllowFreeThreshold, then we're done adding priority txs
355-
if (nBlockSize + iter->GetTxSize() >= nBlockPrioritySize || !AllowFree(actualPriority)) {
355+
if (nBlockSize >= nBlockPrioritySize || !AllowFree(actualPriority)) {
356356
return;
357357
}
358358

0 commit comments

Comments
 (0)