diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-06-06 16:49:52 +0200 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2019-07-09 16:20:12 -0400 |
commit | a913e3f2fbeb1352fc66f334d4f5f7332ea89ad7 (patch) | |
tree | 72bd15fc29edf598ed19f61959a78d9270033768 /src/keystore.cpp | |
parent | c7797ec65544bd23a2e571b2892e1bf512f2a485 (diff) |
Move HaveKey static function from keystore to rpcwallet where it is used
Diffstat (limited to 'src/keystore.cpp')
-rw-r--r-- | src/keystore.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/keystore.cpp b/src/keystore.cpp index 8c149a9250..0319c469fc 100644 --- a/src/keystore.cpp +++ b/src/keystore.cpp @@ -196,10 +196,3 @@ CKeyID GetKeyForDestination(const CBasicKeyStore& store, const CTxDestination& d } return CKeyID(); } - -bool HaveKey(const CBasicKeyStore& store, const CKey& key) -{ - CKey key2; - key2.Set(key.begin(), key.end(), !key.IsCompressed()); - return store.HaveKey(key.GetPubKey().GetID()) || store.HaveKey(key2.GetPubKey().GetID()); -} |