MCPcopy Create free account
hub / github.com/LUX-Core/lux / hasAccount

Method hasAccount

src/cpp-ethereum/libethcore/KeyManager.cpp:339–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339bool KeyManager::hasAccount(Address const& _address) const
340{
341 if (!_address)
342 return false;
343 if (m_keyInfo.count(_address))
344 return true;
345 for (auto const& key: m_store.keys())
346 if (m_store.address(key) == _address)
347 return true;
348 return false;
349}
350
351string const& KeyManager::accountName(Address const& _address) const
352{

Callers 1

unlockAccountMethod · 0.80

Calls 3

countMethod · 0.45
keysMethod · 0.45
addressMethod · 0.45

Tested by

no test coverage detected