Skip to content

Commit e9235b9

Browse files
nmarleyUdjinM6
authored andcommitted
trivial: Rename txid paramater for gobject voteraw (#3191)
The "masternode-tx" name is kinda confusing since ProTxes exist now. This is a small rename to clarify that it is referring to the MN collateral txid and index.
1 parent 70b320b commit e9235b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rpc/governance.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -953,13 +953,13 @@ UniValue voteraw(const JSONRPCRequest& request)
953953
{
954954
if (request.fHelp || request.params.size() != 7)
955955
throw std::runtime_error(
956-
"voteraw <masternode-tx-hash> <masternode-tx-index> <governance-hash> <vote-signal> [yes|no|abstain] <time> <vote-sig>\n"
956+
"voteraw <mn-collateral-tx-hash> <mn-collateral-tx-index> <governance-hash> <vote-signal> [yes|no|abstain] <time> <vote-sig>\n"
957957
"Compile and relay a governance vote with provided external signature instead of signing vote internally\n"
958958
);
959959

960-
uint256 hashMnTx = ParseHashV(request.params[0], "mn tx hash");
961-
int nMnTxIndex = request.params[1].get_int();
962-
COutPoint outpoint = COutPoint(hashMnTx, nMnTxIndex);
960+
uint256 hashMnCollateralTx = ParseHashV(request.params[0], "mn collateral tx hash");
961+
int nMnCollateralTxIndex = request.params[1].get_int();
962+
COutPoint outpoint = COutPoint(hashMnCollateralTx, nMnCollateralTxIndex);
963963

964964
uint256 hashGovObj = ParseHashV(request.params[2], "Governance hash");
965965
std::string strVoteSignal = request.params[3].get_str();

0 commit comments

Comments
 (0)