From d9becff4e13da8e182631baa79b9794c03d44434 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Thu, 6 Jun 2019 16:33:23 +0200 Subject: scripted-diff: rename CBasicKeyStore to FillableSigningProvider -BEGIN VERIFY SCRIPT- git grep -l "CBasicKeyStore" | xargs sed -i -e 's/CBasicKeyStore/FillableSigningProvider/g' -END VERIFY SCRIPT- --- src/wallet/crypter.cpp | 12 ++++++------ src/wallet/crypter.h | 2 +- src/wallet/test/wallet_tests.cpp | 2 +- src/wallet/wallet.h | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/wallet') 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 CCryptoKeyStore::GetKeys() const { LOCK(cs_KeyStore); if (!IsCrypted()) { - return CBasicKeyStore::GetKeys(); + return FillableSigningProvider::GetKeys(); } std::set 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(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); -- cgit v1.2.3