Skip to content

Commit da69d88

Browse files
committed
docs(rpc): update protx example responses
1 parent d8e4a92 commit da69d88

File tree

2 files changed

+35
-20
lines changed

2 files changed

+35
-20
lines changed

docs/core/api/remote-procedure-call-quick-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
8080
## [Evolution RPCs](../api/remote-procedure-calls-evo.md)
8181

8282
* [BLS](../api/remote-procedure-calls-evo.md#bls): provides a set of commands to execute BLS-related actions. _Updated in Dash Core 19.0.0_
83-
* [ProTx](../api/remote-procedure-calls-evo.md#protx): provides a set of commands to execute ProTx related actions. _Updated in Dash Core 20.1.0_
83+
* [ProTx](../api/remote-procedure-calls-evo.md#protx): provides a set of commands to execute ProTx related actions. **Updated in Dash Core 23.0.0**
8484
* [Quorum](../api/remote-procedure-calls-evo.md#quorum): provides a set of commands for quorums (LLMQs). **Updated in Dash Core 22.0.0**
8585
* [SubmitChainLock](../api/remote-procedure-calls-evo.md#submitchainlock): allows the submission of a ChainLock signature. _New in Dash Core 20.1.0_
8686
* [VerifyChainLock](../api/remote-procedure-calls-evo.md#verifychainlock): tests if a quorum signature is valid for a ChainLock. _New in Dash Core 0.17.0_

docs/core/api/remote-procedure-calls-evo.md

Lines changed: 34 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ The `protx diff` RPC calculates a diff and a proof between two masternode list.
178178
| → →<br>ChainLock signature | object | Optional<br>(0 or more) | Key: ChainLock signature<br>Value: array of quorum indexes |
179179
| → → →<br>Quorum index | number | Required<br>(1 or more) | Quorum index indicating a `newQuorums` entry that used this ChainLock signature for their member calculation |
180180

181-
*Example from Dash Core 20.0.0*
181+
*Example from Dash Core 23.0.0*
182182

183183
```bash
184184
dash-cli -testnet protx diff 100000 100500 true
@@ -203,6 +203,11 @@ Result (truncated):
203203
"proRegTxHash": "488910d2554fbc8f803011dd107b993b185ed6eeb7efef6dedfd74ec6656f58b",
204204
"confirmedHash": "00000000031c08dad48934c9e2a0bf3dac307aa1b6106ed8aa4345b5423166cd",
205205
"service": "51.38.80.34:19999",
206+
"addresses": {
207+
"core_p2p": [
208+
"51.38.80.34:19999"
209+
]
210+
},
206211
"pubKeyOperator": "8b63fa3eb2ed4caba1fec3647bcec7a2886b5cde5b2cec6b5a60dc04193e959d21e96cbfa41388159450f244578de9a9",
207212
"votingAddress": "yXRzKxTbQUGWCqYwXnMWw5SnNCPj19NBGZ",
208213
"isValid": true,
@@ -214,6 +219,11 @@ Result (truncated):
214219
"proRegTxHash": "9dadb2198c6c3f7d9aef77493ee2f8f0513198bada377078a99a1128ffa1b2b0",
215220
"confirmedHash": "00000000006fef47babe96126b70087c46defeb9527de07a52e417fe7fcd2fce",
216221
"service": "34.83.230.157:19999",
222+
"addresses": {
223+
"core_p2p": [
224+
"34.83.230.157:19999"
225+
]
226+
},
217227
"pubKeyOperator": "963984167b298d8d77b1be02e38e2493a75251cf9abecc7facee85512eabab7b05ffe053e8956d98ad4a3c20b77ade1e",
218228
"votingAddress": "yW5QUL6GqNswhSdMnWjcyAZ871VKrdY4jS",
219229
"isValid": true,
@@ -263,20 +273,6 @@ Result (truncated):
263273
"merkleRootMNList": "bd5ffd82e616e7abcadf01b7ffa50af2908e6c9b681439f9c9ed7de841afd44c",
264274
"merkleRootQuorums": "091716687aa06b6ee4acd86c6a95ac74455952e91c5f43ef38d97833e100a26a",
265275
"quorumsCLSigs": [
266-
{
267-
"82492bd4bcd9cd24b89011f11368e06d79942579cfa957fad51429553a45d9990cc10e8b475f59d5b29cedb7598edd300ccb43614f4c15055ea8b172d0dad174f6e8ea83814d7cd2dd528ec7a882e941e909763f70b1065bcdce384be559c31b": [
268-
6,
269-
30,
270-
86
271-
]
272-
},
273-
{
274-
"aa3759de99561b451f24d95945674ae8e73ceb0dcd9ce303228599993080e20f0add1a99e24e241bc905e66eb6155c4e07adbbf2232f476495aabb48e6761af3e07f6660c2607e54dc2efaee38934f714aeff9199a818fd2dcc043edbb7d429b": [
275-
13,
276-
37,
277-
93
278-
]
279-
}
280276
]
281277
}
282278
```
@@ -341,8 +337,10 @@ The `protx info` RPC returns detailed information about a deterministic masterno
341337
| → →<br>`lastOutboundAttemptElapsed` | integer | Required<br>(exactly 1) | Elapsed time since last outbound attempt |
342338
| → →<br>`lastOutboundSuccess` | integer | Required<br>(exactly 1) | Unix epoch time of the last successful outbound connection |
343339
| → →<br>`lastOutboundSuccessElapsed` | integer | Required<br>(exactly 1) | Elapsed time since last successful outbound attempt |
340+
| → →<br>`is_platform_banned` | bool | Required<br>(exactly 1) | **Added in Dash Core 23.0.0**<br>Platform ban status |
341+
| → →<br>`platform_ban_height_updated` | integer | Required<br>(exactly 1) | **Added in Dash Core 23.0.0**<br>Height when the Platform ban was updated |
344342

345-
*Example from Dash Core 20.1.0*
343+
*Example from Dash Core 23.10.0*
346344

347345
```bash
348346
dash-cli -testnet protx info\
@@ -362,6 +360,11 @@ Result:
362360
"state": {
363361
"version": 1,
364362
"service": "47.111.181.207:20001",
363+
"addresses": {
364+
"core_p2p": [
365+
"47.111.181.207:20001"
366+
]
367+
},
365368
"registeredHeight": 247288,
366369
"lastPaidHeight": 0,
367370
"consecutivePayments": 0,
@@ -390,7 +393,9 @@ Result:
390393
"lastOutboundAttempt": 0,
391394
"lastOutboundAttemptElapsed": 1686685781,
392395
"lastOutboundSuccess": 0,
393-
"lastOutboundSuccessElapsed": 1686685781
396+
"lastOutboundSuccessElapsed": 1686685781,
397+
"is_platform_banned": false,
398+
"platform_ban_height_updated": 0
394399
}
395400
}
396401
```
@@ -472,8 +477,10 @@ Lists all ProTxs in your wallet or on-chain, depending on the given type. If `ty
472477
| → →<br>`lastOutboundAttemptElapsed` | integer | Required<br>(exactly 1) | Elapsed time since last outbound attempt |
473478
| → →<br>`lastOutboundSuccess` | integer | Required<br>(exactly 1) | Unix epoch time of the last successful outbound connection |
474479
| → →<br>`lastOutboundSuccessElapsed` | integer | Required<br>(exactly 1) | Elapsed time since last successful outbound attempt |
480+
| → →<br>`is_platform_banned` | bool | Required<br>(exactly 1) | **Added in Dash Core 23.0.0**<br>Platform ban status |
481+
| → →<br>`platform_ban_height_updated` | integer | Required<br>(exactly 1) | **Added in Dash Core 23.0.0**<br>Height when the Platform ban was updated |
475482

476-
*Example from Dash Core 19.2.0*
483+
*Example from Dash Core 23.0.0*
477484

478485
```bash
479486
dash-cli -testnet protx list
@@ -519,10 +526,16 @@ Result:
519526
"proTxHash": "c48a44a9493eae641bea36992bc8c27eaaa33adb1884960f55cd259608d26d2f",
520527
"collateralHash": "e3270ff48c4b802d56ee58d3d53777f7f9c289964e4df0842518075fc81345b1",
521528
"collateralIndex": 3,
529+
"collateralAddress": "yYpzTXjVx7A5uohsmW8sRy7TJp4tihVuZg",
522530
"operatorReward": 0,
523531
"state": {
524532
"version": 1,
525533
"service": "173.61.30.231:19013",
534+
"addresses": {
535+
"core_p2p": [
536+
"173.61.30.231:19013"
537+
]
538+
},
526539
"registeredHeight": 7090,
527540
"lastPaidHeight": 0,
528541
"consecutivePayments": 0,
@@ -551,7 +564,9 @@ Result:
551564
"lastOutboundAttempt": 0,
552565
"lastOutboundAttemptElapsed": 1686684013,
553566
"lastOutboundSuccess": 0,
554-
"lastOutboundSuccessElapsed": 1686684013
567+
"lastOutboundSuccessElapsed": 1686684013,
568+
"is_platform_banned": false,
569+
"platform_ban_height_updated": 0
555570
}
556571
}
557572
]

0 commit comments

Comments
 (0)