mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
Merge pull request #4681
54e658f
Remove unused CKeyStoreIsMineVisitor (jtimon)
This commit is contained in:
commit
47963936d6
@ -1444,18 +1444,6 @@ unsigned int HaveKeys(const vector<valtype>& pubkeys, const CKeyStore& keystore)
|
|||||||
return nResult;
|
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)
|
isminetype IsMine(const CKeyStore &keystore, const CTxDestination& dest)
|
||||||
{
|
{
|
||||||
CScript script;
|
CScript script;
|
||||||
|
Loading…
Reference in New Issue
Block a user