mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Merge pull request #503 from UdjinM6/v0.12.0.x_ds_fixes
V0.12.0.x ds fixes
This commit is contained in:
commit
a7fa7e28b0
@ -1356,7 +1356,7 @@ void CDarksendPool::ClearLastMessage()
|
|||||||
//
|
//
|
||||||
// This does NOT run by default for daemons, only for QT.
|
// This does NOT run by default for daemons, only for QT.
|
||||||
//
|
//
|
||||||
bool CDarksendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
|
bool CDarksendPool::DoAutomaticDenominating(bool fDryRun)
|
||||||
{
|
{
|
||||||
if(!fEnableDarksend) return false;
|
if(!fEnableDarksend) return false;
|
||||||
if(fMasterNode) return false;
|
if(fMasterNode) return false;
|
||||||
@ -1441,6 +1441,7 @@ bool CDarksendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
|
|||||||
|
|
||||||
if(nBalanceNeedsDenominated > nValueIn) nBalanceNeedsDenominated = nValueIn;
|
if(nBalanceNeedsDenominated > nValueIn) nBalanceNeedsDenominated = nValueIn;
|
||||||
|
|
||||||
|
if(nBalanceNeedsDenominated < nLowestDenom) return false; // most likely we just waiting for denoms to confirm
|
||||||
if(!fDryRun) return CreateDenominated(nBalanceNeedsDenominated);
|
if(!fDryRun) return CreateDenominated(nBalanceNeedsDenominated);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -1607,10 +1608,6 @@ bool CDarksendPool::DoAutomaticDenominating(bool fDryRun, bool ready)
|
|||||||
}
|
}
|
||||||
|
|
||||||
strAutoDenomResult = _("Mixing in progress...");
|
strAutoDenomResult = _("Mixing in progress...");
|
||||||
if(!ready) return true;
|
|
||||||
|
|
||||||
if(sessionDenom == 0) return true;
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2244,7 +2241,7 @@ void ThreadCheckDarkSendPool()
|
|||||||
darkSendPool.CheckTimeout();
|
darkSendPool.CheckTimeout();
|
||||||
darkSendPool.CheckForCompleteQueue();
|
darkSendPool.CheckForCompleteQueue();
|
||||||
|
|
||||||
if(darkSendPool.GetState() == POOL_STATUS_IDLE && c % 6 == 0){
|
if(darkSendPool.GetState() == POOL_STATUS_IDLE && c % 15 == 0){
|
||||||
darkSendPool.DoAutomaticDenominating();
|
darkSendPool.DoAutomaticDenominating();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -437,7 +437,7 @@ public:
|
|||||||
bool IsCompatibleWithSession(int64_t nAmount, CTransaction txCollateral, int &errorID);
|
bool IsCompatibleWithSession(int64_t nAmount, CTransaction txCollateral, int &errorID);
|
||||||
|
|
||||||
/// Passively run Darksend in the background according to the configuration in settings (only for QT)
|
/// Passively run Darksend in the background according to the configuration in settings (only for QT)
|
||||||
bool DoAutomaticDenominating(bool fDryRun=false, bool ready=false);
|
bool DoAutomaticDenominating(bool fDryRun=false);
|
||||||
bool PrepareDarksendDenominate();
|
bool PrepareDarksendDenominate();
|
||||||
|
|
||||||
/// Check for process in Darksend
|
/// Check for process in Darksend
|
||||||
|
@ -251,6 +251,7 @@ void OptionsDialog::on_resetButton_clicked()
|
|||||||
void OptionsDialog::on_okButton_clicked()
|
void OptionsDialog::on_okButton_clicked()
|
||||||
{
|
{
|
||||||
mapper->submit();
|
mapper->submit();
|
||||||
|
darkSendPool.cachedNumBlocks = 0;
|
||||||
pwalletMain->MarkDirty();
|
pwalletMain->MarkDirty();
|
||||||
accept();
|
accept();
|
||||||
}
|
}
|
||||||
|
@ -545,6 +545,5 @@ void OverviewPage::toggleDarksend(){
|
|||||||
dlg.exec();
|
dlg.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
darkSendPool.DoAutomaticDenominating();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user