mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: Process dsq
messages even when CJ is disabled locally or disk space is low (#5498)
Refusing to process `dsq` will result in node not being able to process `dstx`es later. n/a - [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)_
This commit is contained in:
parent
b7ef43f9dd
commit
66ef7943f5
@ -35,14 +35,8 @@ std::unique_ptr<CCoinJoinClientQueueManager> coinJoinClientQueueManager;
|
||||
void CCoinJoinClientQueueManager::ProcessMessage(const CNode& peer, std::string_view msg_type, CDataStream& vRecv)
|
||||
{
|
||||
if (fMasternodeMode) return;
|
||||
if (!CCoinJoinClientOptions::IsEnabled()) return;
|
||||
if (!m_mn_sync->IsBlockchainSynced()) return;
|
||||
|
||||
if (!CheckDiskSpace(GetDataDir())) {
|
||||
LogPrint(BCLog::COINJOIN, "CCoinJoinClientQueueManager::ProcessMessage -- Not enough disk space, disabling CoinJoin.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg_type == NetMsgType::DSQUEUE) {
|
||||
CCoinJoinClientQueueManager::ProcessDSQueue(peer, vRecv);
|
||||
}
|
||||
@ -1806,7 +1800,6 @@ void CCoinJoinClientManager::UpdatedBlockTip(const CBlockIndex* pindex)
|
||||
|
||||
void CCoinJoinClientQueueManager::DoMaintenance()
|
||||
{
|
||||
if (!CCoinJoinClientOptions::IsEnabled()) return;
|
||||
if (m_mn_sync == nullptr) return;
|
||||
if (fMasternodeMode) return; // no client-side mixing on masternodes
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user