MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetWatchPubKey

Method GetWatchPubKey

src/wallet/scriptpubkeyman.cpp:1029–1038  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029bool 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
1040bool LegacyScriptPubKeyMan::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const
1041{

Callers 1

TestWatchOnlyPubKeyFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by 1

TestWatchOnlyPubKeyFunction · 0.64