diff options
| author | Matt Corallo <[email protected]> | 2015-06-10 01:04:08 -0700 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2015-07-20 16:01:37 -0700 |
| commit | f5813bdd3eb93a2a8d7ba01989eef5b299fcbca4 (patch) | |
| tree | 7830024c8e7ab4a638ee534b5bab1b190010c2ee /src/qt/walletmodel.cpp | |
| parent | Add have-pubkey distinction to ISMINE flags (diff) | |
| download | discoin-f5813bdd3eb93a2a8d7ba01989eef5b299fcbca4.tar.xz discoin-f5813bdd3eb93a2a8d7ba01989eef5b299fcbca4.zip | |
Add logic to track pubkeys as watch-only, not just scripts
Diffstat (limited to 'src/qt/walletmodel.cpp')
| -rw-r--r-- | src/qt/walletmodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qt/walletmodel.cpp b/src/qt/walletmodel.cpp index 168a0255f..4e3d97fc4 100644 --- a/src/qt/walletmodel.cpp +++ b/src/qt/walletmodel.cpp @@ -554,6 +554,11 @@ bool WalletModel::getPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const return wallet->GetPubKey(address, vchPubKeyOut); } +bool WalletModel::havePrivKey(const CKeyID &address) const +{ + return wallet->HaveKey(address); +} + // returns a list of COutputs from COutPoints void WalletModel::getOutputs(const std::vector<COutPoint>& vOutpoints, std::vector<COutput>& vOutputs) { |