diff options
author | Matt Corallo <git@bluematt.me> | 2015-06-10 01:04:08 -0700 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2015-07-20 16:01:37 -0700 |
commit | f5813bdd3eb93a2a8d7ba01989eef5b299fcbca4 (patch) | |
tree | 7830024c8e7ab4a638ee534b5bab1b190010c2ee /src/qt/sendcoinsdialog.cpp | |
parent | d3354c52d7c0c6446cad4074c1d0e04bb1b3d84e (diff) |
Add logic to track pubkeys as watch-only, not just scripts
Diffstat (limited to 'src/qt/sendcoinsdialog.cpp')
-rw-r--r-- | src/qt/sendcoinsdialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index e13cd714a6..34da38285f 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -752,10 +752,9 @@ void SendCoinsDialog::coinControlChangeEdited(const QString& text) } else // Valid address { - CPubKey pubkey; CKeyID keyid; addr.GetKeyID(keyid); - if (!model->getPubKey(keyid, pubkey)) // Unknown change address + if (!model->havePrivKey(keyid)) // Unknown change address { ui->labelCoinControlChangeLabel->setText(tr("Warning: Unknown change address")); } |