mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 20:12:57 +01:00
Fix gobject submit
: replace request params with txidFee (#3471)
Replaced request.params[5] with txidFee, cause the param could be null at that index when the submit type is a masternode trigger, triggering a JSON parsing error (expected str, got null).
This commit is contained in:
parent
970c23d6e6
commit
1c20160933
@ -285,7 +285,7 @@ UniValue gobject_submit(const JSONRPCRequest& request)
|
||||
CGovernanceObject govobj(hashParent, nRevision, nTime, txidFee, strDataHex);
|
||||
|
||||
LogPrint(BCLog::GOBJECT, "gobject_submit -- GetDataAsPlainString = %s, hash = %s, txid = %s\n",
|
||||
govobj.GetDataAsPlainString(), govobj.GetHash().ToString(), request.params[5].get_str());
|
||||
govobj.GetDataAsPlainString(), govobj.GetHash().ToString(), txidFee.ToString());
|
||||
|
||||
if (govobj.GetObjectType() == GOVERNANCE_OBJECT_PROPOSAL) {
|
||||
CProposalValidator validator(strDataHex, false);
|
||||
|
Loading…
Reference in New Issue
Block a user