aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-10-10 15:51:07 -0400
committerLuke Dashjr <luke-jr+git@utopios.org>2011-11-02 11:04:13 -0400
commitef4280e08b217bf2512bb1878e1dd2a926e557c9 (patch)
tree1df906ca055c184a9b6826a8e382831a9ceaff96
parented176ba584ed9f05f5311743059e108ddbbb5d5b (diff)
downloadbitcoin-ef4280e08b217bf2512bb1878e1dd2a926e557c9.tar.xz
Add returns to avoid annoying compile-time warnings.
-rw-r--r--src/keystore.h1
-rw-r--r--src/wallet.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/keystore.h b/src/keystore.h
index bbfac83d1f..1f2c6aea3e 100644
--- a/src/keystore.h
+++ b/src/keystore.h
@@ -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;
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 8bbb80cf25..298a2c6428 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -40,6 +40,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)