diff options
| author | donaloconnor <[email protected]> | 2018-01-07 20:44:21 +0000 |
|---|---|---|
| committer | donaloconnor <[email protected]> | 2018-01-07 20:44:21 +0000 |
| commit | 30ded3e3d888f75b6fa8b2e55a3883f799e00775 (patch) | |
| tree | 9e4a067b49787764d0ad6fb51be01b8ac4819106 /src/checkqueue.h | |
| parent | Merge #12079: Improve prioritisetransaction test coverage (diff) | |
| download | discoin-30ded3e3d888f75b6fa8b2e55a3883f799e00775.tar.xz discoin-30ded3e3d888f75b6fa8b2e55a3883f799e00775.zip | |
[Refactor] Remove unused fQuit var from checkqueue.h
Diffstat (limited to 'src/checkqueue.h')
| -rw-r--r-- | src/checkqueue.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/checkqueue.h b/src/checkqueue.h index 9b4a460ba..7500bae60 100644 --- a/src/checkqueue.h +++ b/src/checkqueue.h @@ -59,9 +59,6 @@ private: */ unsigned int nTodo; - //! Whether we're shutting down. - bool fQuit; - //! The maximum number of elements to be processed in one batch unsigned int nBatchSize; @@ -89,7 +86,7 @@ private: } // logically, the do loop starts here while (queue.empty()) { - if ((fMaster || fQuit) && nTodo == 0) { + if (fMaster && nTodo == 0) { nTotal--; bool fRet = fAllOk; // reset the status for new work later @@ -131,7 +128,7 @@ public: boost::mutex ControlMutex; //! Create a new check queue - explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), fQuit(false), nBatchSize(nBatchSizeIn) {} + explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), nBatchSize(nBatchSizeIn) {} //! Worker thread void Thread() |