Browse Source

Merge pull request #4681

54e658f Remove unused CKeyStoreIsMineVisitor (jtimon)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
47963936d6
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 12
      src/script.cpp

12
src/script.cpp

@ -1444,18 +1444,6 @@ unsigned int HaveKeys(const vector<valtype>& pubkeys, const CKeyStore& keystore) @@ -1444,18 +1444,6 @@ unsigned int HaveKeys(const vector<valtype>& pubkeys, const CKeyStore& keystore)
return nResult;
}
class CKeyStoreIsMineVisitor : public boost::static_visitor<bool>
{
private:
const CKeyStore *keystore;
public:
CKeyStoreIsMineVisitor(const CKeyStore *keystoreIn) : keystore(keystoreIn) { }
bool operator()(const CNoDestination &dest) const { return false; }
bool operator()(const CKeyID &keyID) const { return keystore->HaveKey(keyID); }
bool operator()(const CScriptID &scriptID) const { return keystore->HaveCScript(scriptID); }
};
isminetype IsMine(const CKeyStore &keystore, const CTxDestination& dest)
{
CScript script;

Loading…
Cancel
Save