diff options
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/crypter.cpp | 12 | ||||
-rw-r--r-- | src/wallet/crypter.h | 2 | ||||
-rw-r--r-- | src/wallet/test/wallet_tests.cpp | 2 | ||||
-rw-r--r-- | src/wallet/wallet.h | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/wallet/crypter.cpp b/src/wallet/crypter.cpp index dd56ea10ab..3070454b1b 100644 --- a/src/wallet/crypter.cpp +++ b/src/wallet/crypter.cpp @@ -217,7 +217,7 @@ bool CCryptoKeyStore::AddKeyPubKey(const CKey& key, const CPubKey &pubkey) { LOCK(cs_KeyStore); if (!IsCrypted()) { - return CBasicKeyStore::AddKeyPubKey(key, pubkey); + return FillableSigningProvider::AddKeyPubKey(key, pubkey); } if (IsLocked()) { @@ -253,7 +253,7 @@ bool CCryptoKeyStore::HaveKey(const CKeyID &address) const { LOCK(cs_KeyStore); if (!IsCrypted()) { - return CBasicKeyStore::HaveKey(address); + return FillableSigningProvider::HaveKey(address); } return mapCryptedKeys.count(address) > 0; } @@ -262,7 +262,7 @@ bool CCryptoKeyStore::GetKey(const CKeyID &address, CKey& keyOut) const { LOCK(cs_KeyStore); if (!IsCrypted()) { - return CBasicKeyStore::GetKey(address, keyOut); + return FillableSigningProvider::GetKey(address, keyOut); } CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(address); @@ -279,7 +279,7 @@ bool CCryptoKeyStore::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) co { LOCK(cs_KeyStore); if (!IsCrypted()) - return CBasicKeyStore::GetPubKey(address, vchPubKeyOut); + return FillableSigningProvider::GetPubKey(address, vchPubKeyOut); CryptedKeyMap::const_iterator mi = mapCryptedKeys.find(address); if (mi != mapCryptedKeys.end()) @@ -288,14 +288,14 @@ bool CCryptoKeyStore::GetPubKey(const CKeyID &address, CPubKey& vchPubKeyOut) co return true; } // Check for watch-only pubkeys - return CBasicKeyStore::GetPubKey(address, vchPubKeyOut); + return FillableSigningProvider::GetPubKey(address, vchPubKeyOut); } std::set<CKeyID> CCryptoKeyStore::GetKeys() const { LOCK(cs_KeyStore); if (!IsCrypted()) { - return CBasicKeyStore::GetKeys(); + return FillableSigningProvider::GetKeys(); } std::set<CKeyID> set_address; for (const auto& mi : mapCryptedKeys) { diff --git a/src/wallet/crypter.h b/src/wallet/crypter.h index 8e195ca8fa..95235903f4 100644 --- a/src/wallet/crypter.h +++ b/src/wallet/crypter.h @@ -112,7 +112,7 @@ public: /** Keystore which keeps the private keys encrypted. * It derives from the basic key store, which is used if no encryption is active. */ -class CCryptoKeyStore : public CBasicKeyStore +class CCryptoKeyStore : public FillableSigningProvider { private: diff --git a/src/wallet/test/wallet_tests.cpp b/src/wallet/test/wallet_tests.cpp index ef95d0544f..cbb05596b8 100644 --- a/src/wallet/test/wallet_tests.cpp +++ b/src/wallet/test/wallet_tests.cpp @@ -488,7 +488,7 @@ static size_t CalculateNestedKeyhashInputSize(bool use_max_sig) CScript script_pubkey = CScript() << OP_HASH160 << std::vector<unsigned char>(script_id.begin(), script_id.end()) << OP_EQUAL; // Add inner-script to key store and key to watchonly - CBasicKeyStore keystore; + FillableSigningProvider keystore; keystore.AddCScript(inner_script); keystore.AddKeyPubKey(key, pubkey); diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 7b5465c219..3c1d998d19 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1296,7 +1296,7 @@ public: /** * Explicitly make the wallet learn the related scripts for outputs to the * given key. This is purely to make the wallet file compatible with older - * software, as CBasicKeyStore automatically does this implicitly for all + * software, as FillableSigningProvider automatically does this implicitly for all * keys now. */ void LearnRelatedScripts(const CPubKey& key, OutputType); |