diff options
| author | Andrew Chow <[email protected]> | 2019-06-06 09:53:01 +0200 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2019-07-03 19:43:02 -0400 |
| commit | 1b699a5083b435c2b79f3951f94ac9f967d24f6c (patch) | |
| tree | 3147f82544a1cbd3dbb645be255cebba788b140a /src | |
| parent | Merge #16329: test: Add tests for getblockchaininfo.softforks (diff) | |
| download | discoin-1b699a5083b435c2b79f3951f94ac9f967d24f6c.tar.xz discoin-1b699a5083b435c2b79f3951f94ac9f967d24f6c.zip | |
Add HaveKey and HaveCScript to SigningProvider
Diffstat (limited to 'src')
| -rw-r--r-- | src/keystore.h | 2 | ||||
| -rw-r--r-- | src/script/sign.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/keystore.h b/src/keystore.h index 4bd99e255..fd2212afc 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -23,12 +23,10 @@ public: virtual bool AddKeyPubKey(const CKey &key, const CPubKey &pubkey) =0; //! Check whether a key corresponding to a given address is present in the store. - virtual bool HaveKey(const CKeyID &address) const =0; virtual std::set<CKeyID> GetKeys() const =0; //! Support for BIP 0013 : see https://github.com/bitcoin/bips/blob/master/bip-0013.mediawiki virtual bool AddCScript(const CScript& redeemScript) =0; - virtual bool HaveCScript(const CScriptID &hash) const =0; virtual std::set<CScriptID> GetCScripts() const =0; //! Support for Watch-only addresses diff --git a/src/script/sign.h b/src/script/sign.h index e5c0329a6..9df4dc98f 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -51,8 +51,10 @@ class SigningProvider public: virtual ~SigningProvider() {} virtual bool GetCScript(const CScriptID &scriptid, CScript& script) const { return false; } + virtual bool HaveCScript(const CScriptID &scriptid) const { return false; } virtual bool GetPubKey(const CKeyID &address, CPubKey& pubkey) const { return false; } virtual bool GetKey(const CKeyID &address, CKey& key) const { return false; } + virtual bool HaveKey(const CKeyID &address) const { return false; } virtual bool GetKeyOrigin(const CKeyID& keyid, KeyOriginInfo& info) const { return false; } }; |