Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GUI] Cold staking, alert user if the owner address is not from the wallet #1121

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/qt/pivx/coldstakingwidget.cpp
Expand Up @@ -422,6 +422,16 @@ void ColdStakingWidget::onSendClicked(){

if (!isOwnerAddressFromThisWallet) {
isOwnerAddressFromThisWallet = walletModel->isMine(inputOwner);

// Warn the user if the owner address is not from this wallet
if (!isOwnerAddressFromThisWallet &&
!ask(tr("ALERT!"),
tr("Delegating to an external owner address!\n\n"
"The delegated coins will NOT be spendable by this wallet.\nSpending these coins will need to be done from the wallet or\ndevice containing the owner address.\n\n"
"Do you wish to proceed?"))
) {
return;
}
}

// Don't try to delegate the balance if both addresses are from this wallet
Expand Down