X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkeystore.h;h=34d94ef43d9240c5e8b37b7c552cbccec7f1b042;hb=1c4fc9052a444c114d9c1501d2c6d1305de650d0;hp=9e5674faecf74667592c141fc7d59102537b92a5;hpb=5249b8a7060b3f59bdf4c710cfc20a99d3c164e9;p=novacoin.git diff --git a/src/keystore.h b/src/keystore.h index 9e5674f..34d94ef 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -51,8 +51,8 @@ public: virtual bool GetCScript(const CScriptID &hash, CScript& redeemScriptOut) const =0; // Support for Watch-only addresses - virtual bool AddWatchOnly(const CTxDestination &dest) =0; - virtual bool HaveWatchOnly(const CTxDestination &dest) const =0; + virtual bool AddWatchOnly(const CScript &dest) =0; + virtual bool HaveWatchOnly(const CScript &dest) const =0; virtual bool GetSecret(const CKeyID &address, CSecret& vchSecret, bool &fCompressed) const { @@ -66,7 +66,7 @@ public: typedef std::map > KeyMap; typedef std::map ScriptMap; -typedef std::set WatchOnlySet; +typedef std::set WatchOnlySet; /** Basic key store, that keeps keys in an address->secret map */ class CBasicKeyStore : public CKeyStore @@ -118,8 +118,8 @@ public: virtual bool HaveCScript(const CScriptID &hash) const; virtual bool GetCScript(const CScriptID &hash, CScript& redeemScriptOut) const; - virtual bool AddWatchOnly(const CTxDestination &dest); - virtual bool HaveWatchOnly(const CTxDestination &dest) const; + virtual bool AddWatchOnly(const CScript &dest); + virtual bool HaveWatchOnly(const CScript &dest) const; }; typedef std::map > > CryptedKeyMap;