Fix error message for invalid voting addresses (#2747)

This commit is contained in:
Alexander Block 2019-03-07 14:29:24 +01:00
parent 25222b3786
commit 6374dce99e

View File

@ -693,7 +693,7 @@ UniValue protx_update_registrar(const JSONRPCRequest& request)
ptx.pubKeyOperator = ParseBLSPubKey(request.params[2].get_str(), "operator BLS address");
}
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());