diff options
| author | Gregory Sanders <[email protected]> | 2019-02-19 17:00:45 -0500 |
|---|---|---|
| committer | Gregory Sanders <[email protected]> | 2019-04-29 10:15:23 -0400 |
| commit | 70946e7fee54323ce6a5ea8aeb377e2c7c790bc6 (patch) | |
| tree | 8214716fc7275e3b32bc0c28bdfab5df44ad6a4f /src/rpc/misc.cpp | |
| parent | Merge #15866: test: Add missing syncwithvalidationinterfacequeue to wallet_im... (diff) | |
| download | discoin-70946e7fee54323ce6a5ea8aeb377e2c7c790bc6.tar.xz discoin-70946e7fee54323ce6a5ea8aeb377e2c7c790bc6.zip | |
Replace CScriptID and CKeyID in CTxDestination with dedicated types
Diffstat (limited to 'src/rpc/misc.cpp')
| -rw-r--r-- | src/rpc/misc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index bfb559f0d..7327d6a1b 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -307,8 +307,8 @@ static UniValue verifymessage(const JSONRPCRequest& request) throw JSONRPCError(RPC_TYPE_ERROR, "Invalid address"); } - const CKeyID *keyID = boost::get<CKeyID>(&destination); - if (!keyID) { + const PKHash *pkhash = boost::get<PKHash>(&destination); + if (!pkhash) { throw JSONRPCError(RPC_TYPE_ERROR, "Address does not refer to key"); } @@ -326,7 +326,7 @@ static UniValue verifymessage(const JSONRPCRequest& request) if (!pubkey.RecoverCompact(ss.GetHash(), vchSig)) return false; - return (pubkey.GetID() == *keyID); + return (pubkey.GetID() == *pkhash); } static UniValue signmessagewithprivkey(const JSONRPCRequest& request) |