Skip to content

Commit 5132c11

Browse files
UdjinM6ogabrielides
authored andcommitted
fix: use correct interruption condition in StartCachePopulatorThread (dashpay#5732)
## Issue being fixed or feature implemented dashpay#4788 (comment) noticed while working on dashpay#5731 ## What was done? ## How Has This Been Tested? run a node, check logs - there is a meaningful time span between `start` and `done` now and not just zeros all the time. ## Breaking Changes ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_
1 parent 4092abc commit 5132c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llmq/quorums.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ void CQuorumManager::StartCachePopulatorThread(const CQuorumCPtr pQuorum) const
824824
// when then later some other thread tries to get keys, it will be much faster
825825
workerPool.push([pQuorum, t, this](int threadId) {
826826
for (const auto i : irange::range(pQuorum->members.size())) {
827-
if (!quorumThreadInterrupt) {
827+
if (quorumThreadInterrupt) {
828828
break;
829829
}
830830
if (pQuorum->qc->validMembers[i]) {

0 commit comments

Comments
 (0)