mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
Do not shadow local variable
This commit is contained in:
parent
f2d705629b
commit
ff6639b0f5
@ -798,8 +798,8 @@ UniValue processImport(const UniValue& data) {
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey must be a hex string");
|
||||
}
|
||||
|
||||
std::vector<unsigned char> data(ParseHex(strPubKey));
|
||||
CPubKey pubKey(data.begin(), data.end());
|
||||
std::vector<unsigned char> vData(ParseHex(strPubKey));
|
||||
CPubKey pubKey(vData.begin(), vData.end());
|
||||
|
||||
if (!pubKey.IsFullyValid()) {
|
||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "Pubkey is not a valid public key");
|
||||
|
Loading…
Reference in New Issue
Block a user