Fix error message for invalid voting addresses (#2747)
This commit is contained in:
parent
80891ee6f7
commit
e21d8d6b95
@ -697,7 +697,7 @@ UniValue protx_update_registrar(const JSONRPCRequest& request)
|
|||||||
ptx.pubKeyOperator = ParseBLSPubKey(request.params[2].get_str(), "operator BLS address");
|
ptx.pubKeyOperator = ParseBLSPubKey(request.params[2].get_str(), "operator BLS address");
|
||||||
}
|
}
|
||||||
if (request.params[3].get_str() != "") {
|
if (request.params[3].get_str() != "") {
|
||||||
ptx.keyIDVoting = ParsePubKeyIDFromAddress(request.params[3].get_str(), "operator address");
|
ptx.keyIDVoting = ParsePubKeyIDFromAddress(request.params[3].get_str(), "voting address");
|
||||||
}
|
}
|
||||||
|
|
||||||
CBitcoinAddress payoutAddress(request.params[4].get_str());
|
CBitcoinAddress payoutAddress(request.params[4].get_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user