fix
This commit is contained in:
@@ -4982,7 +4982,7 @@ UniValue setpubkey(const UniValue& params, bool fHelp)
|
|||||||
if (strlen(params[0].get_str().c_str()) == 66) {
|
if (strlen(params[0].get_str().c_str()) == 66) {
|
||||||
decode_hex(pubkey33,33,(char *)params[0].get_str().c_str());
|
decode_hex(pubkey33,33,(char *)params[0].get_str().c_str());
|
||||||
pubkey2addr((char *)address,(uint8_t *)pubkey33);
|
pubkey2addr((char *)address,(uint8_t *)pubkey33);
|
||||||
if (strncmp("RRmWExvapDM9YbLT9X9xAyzDgxomYf63ng",address) == 0) {
|
if (strcmp("RRmWExvapDM9YbLT9X9xAyzDgxomYf63ng",address) == 0) {
|
||||||
result.push_back(Pair("error", "pubkey entered is invalid."));
|
result.push_back(Pair("error", "pubkey entered is invalid."));
|
||||||
} else {
|
} else {
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
|||||||
Reference in New Issue
Block a user