Skip to content

Commit

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

* Revert prior and update in correct location
  • Loading branch information
PastaPastaPasta authored and CryptoCentric committed Apr 25, 2019
1 parent 8b3b9fd commit 002f479
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 @@ -434,7 +434,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 @@ -782,7 +782,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 002f479

Please sign in to comment.