mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
llmq: Sleep less in quorum data recovery threads (#3989)
Speeds up feature_llmq_data_recovery.py test ~25% and makes sense overall imo.
This commit is contained in:
parent
f5e74c8a10
commit
054be30344
@ -319,7 +319,7 @@ void CQuorum::StartQuorumDataRecoveryThread(const CQuorumCPtr _this, const CBloc
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
_this->interruptQuorumDataReceived.reset();
|
_this->interruptQuorumDataReceived.reset();
|
||||||
_this->interruptQuorumDataReceived.sleep_for(std::chrono::seconds(nRequestTimeout));
|
_this->interruptQuorumDataReceived.sleep_for(std::chrono::seconds(1));
|
||||||
}
|
}
|
||||||
_this->fQuorumDataRecoveryThreadRunning = false;
|
_this->fQuorumDataRecoveryThreadRunning = false;
|
||||||
printLog("Done");
|
printLog("Done");
|
||||||
|
Loading…
Reference in New Issue
Block a user