aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorAlex Morcos <[email protected]>2016-06-01 12:29:03 -0400
committerAlex Morcos <[email protected]>2016-06-01 12:29:03 -0400
commitc2dd5a3c39156749e8ee24772d1fcb01404f2b6f (patch)
tree8e6b62d05cc1399db28a8d00f634add8cee0df60 /src/miner.cpp
parentFIX: Account for txs already added to block in addPriorityTxs (diff)
downloaddiscoin-c2dd5a3c39156749e8ee24772d1fcb01404f2b6f.tar.xz
discoin-c2dd5a3c39156749e8ee24772d1fcb01404f2b6f.zip
FIX: correctly measure size of priority block
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/miner.cpp b/src/miner.cpp
index 1eab8f949..99eb0a2eb 100644
--- a/src/miner.cpp
+++ b/src/miner.cpp
@@ -352,7 +352,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;
}