File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ void SignVerifyMessageDialog::on_signMessageButton_SM_clicked()
142
142
}
143
143
144
144
CKey key;
145
- if (!pwalletMain-> GetKey (keyID, key))
145
+ if (!model-> getPrivKey (keyID, key))
146
146
{
147
147
ui->statusLabel_SM ->setStyleSheet (" QLabel { color: red; }" );
148
148
ui->statusLabel_SM ->setText (tr (" Private key for the entered address is not available." ));
Original file line number Diff line number Diff line change @@ -563,6 +563,11 @@ bool WalletModel::havePrivKey(const CKeyID &address) const
563
563
return wallet->HaveKey (address);
564
564
}
565
565
566
+ bool WalletModel::getPrivKey (const CKeyID &address, CKey& vchPrivKeyOut) const
567
+ {
568
+ return wallet->GetKey (address, vchPrivKeyOut);
569
+ }
570
+
566
571
// returns a list of COutputs from COutPoints
567
572
void WalletModel::getOutputs (const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs)
568
573
{
Original file line number Diff line number Diff line change @@ -188,6 +188,7 @@ class WalletModel : public QObject
188
188
189
189
bool getPubKey (const CKeyID &address, CPubKey& vchPubKeyOut) const ;
190
190
bool havePrivKey (const CKeyID &address) const ;
191
+ bool getPrivKey (const CKeyID &address, CKey& vchPrivKeyOut) const ;
191
192
void getOutputs (const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs);
192
193
bool isSpent (const COutPoint& outpoint) const ;
193
194
void listCoins (std::map<QString, std::vector<COutput> >& mapCoins) const ;
You can’t perform that action at this time.
0 commit comments