diff options
| author | Alex Morcos <[email protected]> | 2016-06-01 12:29:03 -0400 |
|---|---|---|
| committer | Alex Morcos <[email protected]> | 2016-06-01 12:29:03 -0400 |
| commit | c2dd5a3c39156749e8ee24772d1fcb01404f2b6f (patch) | |
| tree | 8e6b62d05cc1399db28a8d00f634add8cee0df60 /src/miner.cpp | |
| parent | FIX: Account for txs already added to block in addPriorityTxs (diff) | |
| download | discoin-c2dd5a3c39156749e8ee24772d1fcb01404f2b6f.tar.xz discoin-c2dd5a3c39156749e8ee24772d1fcb01404f2b6f.zip | |
FIX: correctly measure size of priority block
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 2 |
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; } |