| 1027 | } |
| 1028 | |
| 1029 | bool LegacyScriptPubKeyMan::GetWatchPubKey(const CKeyID &address, CPubKey &pubkey_out) const |
| 1030 | { |
| 1031 | LOCK(cs_KeyStore); |
| 1032 | WatchKeyMap::const_iterator it = mapWatchKeys.find(address); |
| 1033 | if (it != mapWatchKeys.end()) { |
| 1034 | pubkey_out = it->second; |
| 1035 | return true; |
| 1036 | } |
| 1037 | return false; |
| 1038 | } |
| 1039 | |
| 1040 | bool LegacyScriptPubKeyMan::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const |
| 1041 | { |