Fix error message for invalid voting addresses (#2747)

This commit is contained in:
Alexander Block 2019-03-07 14:29:24 +01:00 committed by UdjinM6
parent 80891ee6f7
commit e21d8d6b95

View File

@ -697,7 +697,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());