MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / HaveKey

Method HaveKey

src/wallet/crypter.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252bool CCryptoKeyStore::HaveKey(const CKeyID &address) const
253{
254 LOCK(cs_KeyStore);
255 if (!IsCrypted()) {
256 return CBasicKeyStore::HaveKey(address);
257 }
258 return mapCryptedKeys.count(address) > 0;
259}
260
261bool CCryptoKeyStore::GetKey(const CKeyID &address, CKey& keyOut) const
262{

Callers 6

importprivkeyFunction · 0.45
importwalletFunction · 0.45
rpcdump.cppFile · 0.45
operator()Method · 0.45
HaveKeysFunction · 0.45
IsMineInnerFunction · 0.45

Calls 2

HaveKeyFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected