mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
DS: Adjust Target Balance
- When targeting the entire balance, the wallet reports getting stuck at 99%.
This commit is contained in:
parent
cd4b13d86d
commit
7d5948012b
@ -300,6 +300,7 @@ void OverviewPage::updateDarksendProgress()
|
|||||||
{
|
{
|
||||||
denomPart = (float)pwalletMain->GetNormalizedAnonymizedBalance() / denominatedBalance;
|
denomPart = (float)pwalletMain->GetNormalizedAnonymizedBalance() / denominatedBalance;
|
||||||
denomPart = denomPart > 1 ? 1 : denomPart;
|
denomPart = denomPart > 1 ? 1 : denomPart;
|
||||||
|
if(denomPart == 1) nMaxToAnonymize = denominatedBalance;
|
||||||
}
|
}
|
||||||
|
|
||||||
// % of fully anonymized balance
|
// % of fully anonymized balance
|
||||||
@ -313,7 +314,7 @@ void OverviewPage::updateDarksendProgress()
|
|||||||
|
|
||||||
// apply some weights to them (sum should be <=100) and calculate the whole progress
|
// apply some weights to them (sum should be <=100) and calculate the whole progress
|
||||||
int progress = 80 * denomPart + 20 * anonPart;
|
int progress = 80 * denomPart + 20 * anonPart;
|
||||||
if(progress > 100) progress = 100;
|
if(progress >= 100) progress = 100;
|
||||||
|
|
||||||
ui->darksendProgress->setValue(progress);
|
ui->darksendProgress->setValue(progress);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user