Skip to content

Commit

Permalink
Fix go private window behavore for exchange address
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Apr 2, 2024
1 parent 17aab98 commit e254498
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,25 @@ void SendCoinsDialog::on_sendButton_clicked()
}
} else if ((fAnonymousMode == false) && (sparkAddressCount == 0)) {
if (spark::IsSparkAllowed()) {
SendGoPrivateDialog goPrivateDialog;
bool clickedButton = goPrivateDialog.getClickedButton();
if (!clickedButton) {
setAnonymizeMode(true);
fNewRecipientAllowed = true;
return;
bool openPageTag = true;
for(int i = 0; i < recipients.size(); ++i){
std::string address = recipients[i].address.toStdString();
CBitcoinAddress add(address);
CTxDestination dest = add.Get();

if (boost::get<CExchangeKeyID>(&dest)) {
openPageTag = false;
}
}

if (openPageTag) {
SendGoPrivateDialog goPrivateDialog;
bool clickedButton = goPrivateDialog.getClickedButton();
if (!clickedButton) {
setAnonymizeMode(true);
fNewRecipientAllowed = true;
return;
}
}
}
prepareStatus = model->prepareTransaction(currentTransaction, &ctrl);
Expand Down

0 comments on commit e254498

Please sign in to comment.