diff options
| author | practicalswift <[email protected]> | 2017-04-10 10:24:49 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2017-04-10 10:24:49 +0200 |
| commit | 9a763d4f86fb2428bfcae6cad5326600ada10c11 (patch) | |
| tree | 216bc64aac841ad0a34ca5f993bac2434104ef1b /src/miner.cpp | |
| parent | Merge #10167: [trivial] Fix typo ("improssible" → "impossible") (diff) | |
| download | discoin-9a763d4f86fb2428bfcae6cad5326600ada10c11.tar.xz discoin-9a763d4f86fb2428bfcae6cad5326600ada10c11.zip | |
Remove excess logic.
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 386d75c4b..69a89bd61 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -317,9 +317,7 @@ int BlockAssembler::UpdatePackagesForAdded(const CTxMemPool::setEntries& already bool BlockAssembler::SkipMapTxEntry(CTxMemPool::txiter it, indexed_modified_transaction_set &mapModifiedTx, CTxMemPool::setEntries &failedTx) { assert (it != mempool.mapTx.end()); - if (mapModifiedTx.count(it) || inBlock.count(it) || failedTx.count(it)) - return true; - return false; + return mapModifiedTx.count(it) || inBlock.count(it) || failedTx.count(it); } void BlockAssembler::SortForBlock(const CTxMemPool::setEntries& package, CTxMemPool::txiter entry, std::vector<CTxMemPool::txiter>& sortedEntries) |