Add returns to avoid annoying compile-time warnings.

This commit is contained in:
Matt Corallo 2011-10-10 15:51:07 -04:00 committed by Gavin Andresen
parent d041590218
commit 0767e69199
2 changed files with 2 additions and 0 deletions

View File

@ -114,6 +114,7 @@ public:
return CBasicKeyStore::HaveKey(address);
return mapCryptedKeys.count(address) > 0;
}
return false;
}
bool GetKey(const CBitcoinAddress &address, CKey& keyOut) const;
bool GetPubKey(const CBitcoinAddress &address, std::vector<unsigned char>& vchPubKeyOut) const;

View File

@ -39,6 +39,7 @@ bool CWallet::AddCryptedKey(const vector<unsigned char> &vchPubKey, const vector
else
return CWalletDB(strWalletFile).WriteCryptedKey(vchPubKey, vchCryptedSecret);
}
return false;
}
bool CWallet::Unlock(const string& strWalletPassphrase)