diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2011-06-25 14:57:32 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2011-07-08 15:46:47 +0200 |
commit | acd6501610817eee0bd1c8ea9c591f043affbaec (patch) | |
tree | e2b05a5d0bc1a0b890b2b1d6a16713967143ff95 /src/wallet.h | |
parent | e94010b2395694d56dd62a2cb956a40ef801a191 (diff) |
Prepare codebase for Encrypted Keys.
Diffstat (limited to 'src/wallet.h')
-rw-r--r-- | src/wallet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h index 7d9db97267..8fb29a4892 100644 --- a/src/wallet.h +++ b/src/wallet.h @@ -12,7 +12,7 @@ class CWalletTx; class CReserveKey; class CWalletDB; -class CWallet : public CKeyStore +class CWallet : public CCryptoKeyStore { private: bool SelectCoinsMinConf(int64 nTargetValue, int nConfMine, int nConfTheirs, std::set<std::pair<const CWalletTx*,unsigned int> >& setCoinsRet, int64& nValueRet) const; @@ -48,7 +48,10 @@ public: std::vector<unsigned char> vchDefaultKey; + // keystore implementation bool AddKey(const CKey& key); + bool LoadKey(const CKey& key) { return CCryptoKeyStore::AddKey(key); } + bool AddToWallet(const CWalletTx& wtxIn); bool AddToWalletIfInvolvingMe(const CTransaction& tx, const CBlock* pblock, bool fUpdate = false); bool EraseFromWallet(uint256 hash); |