Browse Source

Add returns to avoid annoying compile-time warnings.

0.8
Matt Corallo 13 years ago committed by Gavin Andresen
parent
commit
0767e69199
  1. 1
      src/keystore.h
  2. 1
      src/wallet.cpp

1
src/keystore.h

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

1
src/wallet.cpp

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

Loading…
Cancel
Save