File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
#include < util.h>
9
9
10
- bool CKeyStore::AddKey (const CKey &key) {
11
- return AddKeyPubKey (key, key.GetPubKey ());
12
- }
13
-
14
10
void CBasicKeyStore::ImplicitlyLearnRelatedKeyScripts (const CPubKey& pubkey)
15
11
{
16
12
AssertLockHeld (cs_KeyStore);
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class CKeyStore
25
25
26
26
// ! Add a key to the store.
27
27
virtual bool AddKeyPubKey (const CKey &key, const CPubKey &pubkey) =0;
28
- virtual bool AddKey (const CKey &key);
29
28
30
29
// ! Check whether a key corresponding to a given address is present in the store.
31
30
virtual bool HaveKey (const CKeyID &address) const =0;
@@ -64,6 +63,7 @@ class CBasicKeyStore : public CKeyStore
64
63
65
64
public:
66
65
bool AddKeyPubKey (const CKey& key, const CPubKey &pubkey) override ;
66
+ bool AddKey (const CKey &key) { return AddKeyPubKey (key, key.GetPubKey ()); }
67
67
bool GetPubKey (const CKeyID &address, CPubKey& vchPubKeyOut) const override ;
68
68
bool HaveKey (const CKeyID &address) const override ;
69
69
std::set<CKeyID> GetKeys () const override ;
You can’t perform that action at this time.
0 commit comments