This commit is contained in:
blackjok3r
2018-10-24 15:00:49 +08:00
parent b412964cf2
commit 906935b4ef

View File

@@ -4983,7 +4983,7 @@ UniValue setpubkey(const UniValue& params, bool fHelp)
NOTARY_PUBKEY = params[0].get_str();
decode_hex(NOTARY_PUBKEY33,33,(char *)NOTARY_PUBKEY.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);
result.push_back(Pair("R-address", address));
} else {
result.push_back(Pair("error", "Can only set pubkey once, to change it you need to restart your daemon."));