mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Fix code style in keystore.cpp/crypter.cpp
This commit is contained in:
parent
208fda69b3
commit
dd9bb253c3
2 changed files with 66 additions and 79 deletions
|
|
@ -54,14 +54,11 @@ std::set<CKeyID> CBasicKeyStore::GetKeys() const
|
|||
|
||||
bool CBasicKeyStore::GetKey(const CKeyID &address, CKey &keyOut) const
|
||||
{
|
||||
{
|
||||
LOCK(cs_KeyStore);
|
||||
KeyMap::const_iterator mi = mapKeys.find(address);
|
||||
if (mi != mapKeys.end())
|
||||
{
|
||||
keyOut = mi->second;
|
||||
return true;
|
||||
}
|
||||
LOCK(cs_KeyStore);
|
||||
KeyMap::const_iterator mi = mapKeys.find(address);
|
||||
if (mi != mapKeys.end()) {
|
||||
keyOut = mi->second;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue