aboutsummaryrefslogtreecommitdiff
path: root/src/keystore.h
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-03-23 00:57:09 +0000
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-03-24 12:15:53 +0000
commit25eb9f50205b8e391cabbbf721711e08169c3773 (patch)
treecfc3b6f10e955303fda804aaf8f60f6730d498ed /src/keystore.h
parentb43aba89e356ff95b706e80d4802f60fc46a569a (diff)
downloadbitcoin-25eb9f50205b8e391cabbbf721711e08169c3773.tar.xz
Inline CKeyStore::AddKey(const CKey &) in CBasicKeyStore
Diffstat (limited to 'src/keystore.h')
-rw-r--r--src/keystore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keystore.h b/src/keystore.h
index ffd3238fd6..2cca42c452 100644
--- a/src/keystore.h
+++ b/src/keystore.h
@@ -25,7 +25,6 @@ public:
//! Add a key to the store.
virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) =0;
- virtual bool AddKey(const CKey &key);
//! Check whether a key corresponding to a given address is present in the store.
virtual bool HaveKey(const CKeyID &address) const =0;
@@ -64,6 +63,7 @@ protected:
public:
bool AddKeyPubKey(const CKey& key, const CPubKey &pubkey) override;
+ bool AddKey(const CKey &key) { return AddKeyPubKey(key, key.GetPubKey()); }
bool GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) const override;
bool HaveKey(const CKeyID &address) const override;
std::set<CKeyID> GetKeys() const override;