RPC - Update trigger deserialize example

- Add missing SigningMasternode field
This commit is contained in:
thephez 2019-06-17 12:30:18 -04:00
parent e4d3c02d50
commit 7134362ff6
No known key found for this signature in database
GPG key ID: BBC8A06DBE236099
2 changed files with 20 additions and 31 deletions

View file

@ -403,11 +403,6 @@ Result:
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "Array of governance objects" d: "Array of governance objects"
- n: "→<br>`trigger`"
t: "string (hex)"
p: "Required<br>(exactly 1)"
d: "Trigger object"
- n: "→ →<br>`event_block_height`" - n: "→ →<br>`event_block_height`"
t: "int" t: "int"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -435,38 +430,27 @@ Result:
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.14.0*
{% highlight bash %} {% highlight bash %}
dash-cli -testnet gobject deserialize 5b5b2274726967676572222c207b226576656e7\ dash-cli -testnet gobject deserialize 7b226576656e745f626c6f636b5f68656967687\
45f626c6f636b5f686569676874223a2031383435362c20227061796d656e745f616464726573\ 4223a203131393539322c20227061796d656e745f616464726573736573223a20227954686d6e\
736573223a20227952465968665a4a4258567a3861696850365a7166714174374245316256644\ 75565a316765516e79776f456147627079333362695435473573587a62222c20227061796d656\
676567c79544c795070554668696768355270787a72695a6362474c5972527836687959455022\ e745f616d6f756e7473223a2022312e3335393631393331222c202270726f706f73616c5f6861\
2c20227061796d656e745f616d6f756e7473223a2022322e31323334353637387c322e3030303\ 73686573223a20223836333966636464653131626432373032373663396330333564366435346\
030303030222c202270726f706f73616c5f686173686573223a20223632623161336564633938\ 3653962393138323465366466373532636164376464646331616532663734386435222c202274\
37626432313134636439323263336339376166643039383339353534313862313730316330666\ 797065223a20327d
131353262616662386131313735667c3138376337353166653631336434386139623331316161\
34383833383635666166396234336333623931333433333438326636636632343763313835656\
13037222c202274797065223a20327d5d5d
{% endhighlight %} {% endhighlight %}
Result (wrapped): Result (wrapped):
{% highlight json %} {% highlight json %}
[
[
"trigger",
{ {
"event_block_height":18456, "event_block_height": 119592,
"payment_addresses":"yRFYhfZJBXVz8aihP6ZqfqAt7BE1bVdFvV\ "payment_addresses": "yThmnuVZ1geQnywoEaGbpy33biT5G5sXzb",
|yTLyPpUFhigh5RpxzriZcbGLYrRx6hyYEP", "payment_amounts": "1.35961931",
"payment_amounts":"2.12345678|2.00000000", "proposal_hashes": "8639fcdde11bd270276c9c035d6d54ce9b91824e6df752cad7dddc1ae2f748d5",
"proposal_hashes":"62b1a3edc987bd2114cd922c3c97afd0983955418b1701c0fa\
152bafb8a1175f|187c751fe613d48a9b311aa4883865faf9b43c3b913433482f6c\
f247c185ea07",
"type": 2 "type": 2
} }
]
]
{% endhighlight %} {% endhighlight %}
{% endautocrossref %} {% endautocrossref %}

View file

@ -395,6 +395,11 @@ NOT IN DASH
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
d: "Object creation time as Unix epoch time" d: "Object creation time as Unix epoch time"
- n: "→ →<br>`SigningMasternode`"
t: "string (hex)"
p: "Optional<br>(0 or 1)"
d: "Signing masternode's vin (only present in triggers)"
- n: "→ →<br>`AbsoluteYesCount`" - n: "→ →<br>`AbsoluteYesCount`"
t: "number" t: "number"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"