Use correct CURRENT_VERSION constants when creating ProTx-es via rpc (#3524)

This commit is contained in:
UdjinM6 2020-06-13 21:19:19 +03:00 committed by GitHub
parent 4cb73522a8
commit de43cf09ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -642,7 +642,7 @@ UniValue protx_update_service(const JSONRPCRequest& request)
EnsureWalletIsUnlocked(pwallet);
CProUpServTx ptx;
ptx.nVersion = CProRegTx::CURRENT_VERSION;
ptx.nVersion = CProUpServTx::CURRENT_VERSION;
ptx.proTxHash = ParseHashV(request.params[1], "proTxHash");
if (!Lookup(request.params[2].get_str().c_str(), ptx.addr, Params().GetDefaultPort(), false)) {
@ -740,7 +740,7 @@ UniValue protx_update_registrar(const JSONRPCRequest& request)
EnsureWalletIsUnlocked(pwallet);
CProUpRegTx ptx;
ptx.nVersion = CProRegTx::CURRENT_VERSION;
ptx.nVersion = CProUpRegTx::CURRENT_VERSION;
ptx.proTxHash = ParseHashV(request.params[1], "proTxHash");
auto dmn = deterministicMNManager->GetListAtChainTip().GetMN(ptx.proTxHash);
@ -830,7 +830,7 @@ UniValue protx_revoke(const JSONRPCRequest& request)
EnsureWalletIsUnlocked(pwallet);
CProUpRevTx ptx;
ptx.nVersion = CProRegTx::CURRENT_VERSION;
ptx.nVersion = CProUpRevTx::CURRENT_VERSION;
ptx.proTxHash = ParseHashV(request.params[1], "proTxHash");
CBLSSecretKey keyOperator = ParseBLSSecretKey(request.params[2].get_str(), "operatorKey");