Skip to content

Commit

Permalink
Fixes inaccurate round count in CoinControlDialog (#2137)
Browse files Browse the repository at this point in the history
* fixes #2068

* Revert prior and update in correct location
  • Loading branch information
PastaPastaPasta authored and UdjinM6 committed Jul 16, 2018
1 parent 1681d63 commit d7e2103
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qt/coincontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void CoinControlDialog::viewItemChanged(QTreeWidgetItem* item, int column)
item->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked);
else {
coinControl->Select(outpt);
int nRounds = pwalletMain->GetCappedOutpointPrivateSendRounds(outpt);
int nRounds = pwalletMain->GetRealOutpointPrivateSendRounds(outpt);
if (coinControl->fUsePrivateSend && nRounds < privateSendClient.nPrivateSendRounds) {
QMessageBox::warning(this, windowTitle(),
tr("Non-anonymized input selected. <b>PrivateSend will be disabled.</b><br><br>If you still want to use PrivateSend, please deselect all non-nonymized inputs first and then check PrivateSend checkbox again."),
Expand Down Expand Up @@ -781,7 +781,7 @@ void CoinControlDialog::updateView()

// PrivateSend rounds
COutPoint outpoint = COutPoint(out.tx->tx->GetHash(), out.i);
int nRounds = pwalletMain->GetCappedOutpointPrivateSendRounds(outpoint);
int nRounds = pwalletMain->GetRealOutpointPrivateSendRounds(outpoint);

if (nRounds >= 0 || fDebug) itemOutput->setText(COLUMN_PRIVATESEND_ROUNDS, QString::number(nRounds));
else itemOutput->setText(COLUMN_PRIVATESEND_ROUNDS, tr("n/a"));
Expand Down

0 comments on commit d7e2103

Please sign in to comment.