mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 15:04:44 +01:00
Merge #8981: Wshadow: Do not shadow argument with a local variable
ff6639b
Do not shadow local variable (Pavel Janík)
This commit is contained in:
commit
0b2322b144
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue