From 7d5948012be83ab3aedcf1afc0b59dd9445eb977 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Wed, 8 Apr 2015 07:41:49 -0700 Subject: [PATCH] DS: Adjust Target Balance - When targeting the entire balance, the wallet reports getting stuck at 99%. --- src/qt/overviewpage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp index eb014ce112..003d64ee6c 100755 --- a/src/qt/overviewpage.cpp +++ b/src/qt/overviewpage.cpp @@ -300,6 +300,7 @@ void OverviewPage::updateDarksendProgress() { denomPart = (float)pwalletMain->GetNormalizedAnonymizedBalance() / denominatedBalance; denomPart = denomPart > 1 ? 1 : denomPart; + if(denomPart == 1) nMaxToAnonymize = denominatedBalance; } // % 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 int progress = 80 * denomPart + 20 * anonPart; - if(progress > 100) progress = 100; + if(progress >= 100) progress = 100; ui->darksendProgress->setValue(progress);