From d9fba246ca3fc10096bda12281dfe38eca94a692 Mon Sep 17 00:00:00 2001 From: thephez Date: Wed, 11 Oct 2017 11:36:11 -0400 Subject: [PATCH] Formatting and example updates --- .../devdoc/dash-core/rpcs/quick-reference.md | 2 +- .../dash-core/rpcs/rpcs/getdifficulty.md | 2 +- .../dash-core/rpcs/rpcs/getnetworkhashps.md | 2 +- .../dash-core/rpcs/rpcs/getrawmempool.md | 25 ++++++++++--------- .../dash-core/rpcs/rpcs/getspentinfo.md | 13 +++++++--- _includes/helpers/summaries.md | 3 +-- 6 files changed, 26 insertions(+), 21 deletions(-) diff --git a/_includes/devdoc/dash-core/rpcs/quick-reference.md b/_includes/devdoc/dash-core/rpcs/quick-reference.md index 19114f6d..bc5a9f28 100644 --- a/_includes/devdoc/dash-core/rpcs/quick-reference.md +++ b/_includes/devdoc/dash-core/rpcs/quick-reference.md @@ -88,7 +88,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core * [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}} * [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}} * [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_12_1}} -* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}} +* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}} * [GetMemPoolInfo][rpc getmempoolinfo]: {{summary_getMemPoolInfo}} {{UPDATED0_12_0}} * [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}} {{UPDATED0_13_0}} * [GetSpentInfo][rpc getspentinfo]: {{summary_getSpentInfo}} {{DASH_NEW0_12_1}} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getdifficulty.md b/_includes/devdoc/dash-core/rpcs/rpcs/getdifficulty.md index f6f4a4f6..e09b46b6 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getdifficulty.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getdifficulty.md @@ -7,7 +7,7 @@ http://opensource.org/licenses/MIT. ##### GetDifficulty {% include helpers/subhead-links.md %} -{% assign summary_getDifficultly="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %} +{% assign summary_getDifficulty="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %} {% autocrossref %} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkhashps.md b/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkhashps.md index 686524fb..1e9e4f27 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkhashps.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getnetworkhashps.md @@ -60,7 +60,7 @@ Result: *See also* -* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}} +* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}} * [GetBlock][rpc getblock]: {{summary_getBlock}} {% endautocrossref %} diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getrawmempool.md b/_includes/devdoc/dash-core/rpcs/rpcs/getrawmempool.md index 4b345faa..a95dc1f7 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getrawmempool.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getrawmempool.md @@ -137,7 +137,7 @@ The `getrawmempool` RPC {{summary_getRawMemPool}} The default (`false`): {% highlight bash %} -bitcoin-cli getrawmempool +dash-cli getrawmempool {% endhighlight %} Result: @@ -158,18 +158,19 @@ Result: {% highlight json %} { - "9dc994e03e387ff2d2709fbe86edede9f3d7aaddea7f75694495e415561b22fe": { - "size": 3471, - "fee": 0.00080520, - "modifiedfee": 0.00080520, - "time": 1507217951, - "height": 4660, - "startingpriority": 553299903846.1538, - "currentpriority": 553299903846.1538, - "descendantcount": 1, - "descendantsize": 3471, - "descendantfees": 80520, + "286b3ec21e6ce5463fc712c98d86e02353525e09452113836651f3f91e562354": { + "size": 225, + "fee": 0.00000225, + "modifiedfee": 0.00000225, + "time": 1507735322, + "height": 7940, + "startingpriority": 0, + "currentpriority": 0, + "descendantcount": 4, + "descendantsize": 901, + "descendantfees": 902, "depends": [ + "2aacf53e0e15d3b4d778837792c7b6bd298edd3c41a0608586bdec41adcfe7c4" ] } } diff --git a/_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md b/_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md index 2f110821..400cc692 100644 --- a/_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md +++ b/_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md @@ -2,7 +2,7 @@ This file is licensed under the MIT License (MIT) available on http://opensource.org/licenses/MIT. {% endcomment %} -{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md" %}# +{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md" %} ##### GetSpentInfo {% include helpers/subhead-links.md %} @@ -62,16 +62,21 @@ Get the txid and index where an output is spent: dash-cli getspentinfo \ ''' { - "txid": "e0a06b47f0de6f3851a228d5ac377ac38b495adf04298c43e951e679c5b0aa8f", \ + "txid": "0456aaf51a8df21dd47c2a06ede046a5bf7403bcb95d14d1d71b178c189fb933", \ "index": 0 } {% endhighlight %} Result: -**Example needed** {% highlight json %} - +{ + "txid": "14e874421350840e9d43965967c5a989e7d41ad361ef37484ee67d01d433ecfa", + "index": 1, + "height": 7742 +} {% endhighlight %} +*See also: none* + {% endautocrossref %} diff --git a/_includes/helpers/summaries.md b/_includes/helpers/summaries.md index 17e719f0..03d90f9b 100644 --- a/_includes/helpers/summaries.md +++ b/_includes/helpers/summaries.md @@ -19,7 +19,6 @@ This file is licensed under the terms of its source texts{%endcomment%} {% assign summary_estimateFee="estimates the transaction fee per kilobyte that needs to be paid for a transaction to be included within a certain number of blocks." %} {% assign summary_estimatePriority="estimates the priority that a transaction needs in order to be included within a certain number of blocks as a free high-priority transaction." %} {% assign summary_fundRawTransaction="adds inputs to a transaction until it has enough in value to meet its out value." %} -{% assign summary_generate="nearly instantly generates blocks." %} {% assign summary_generate="mines blocks immediately (before the RPC call returns)." %} {% assign summary_generateToAddress="mines blocks immediately to a specified address." %} {% assign summary_getAccount="returns the name of the account associated with the given address." %} @@ -43,7 +42,7 @@ This file is licensed under the terms of its source texts{%endcomment%} {% assign summary_getBlockTemplate="gets a block template or proposal for use with mining software." %} {% assign summary_getChainTips="returns information about the highest-height block (tip) of each local block chain." %} {% assign summary_getConnectionCount="returns the number of connections to other nodes." %} -{% assign summary_getDifficultly="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %} +{% assign summary_getDifficulty="returns the proof-of-work difficulty as a multiple of the minimum difficulty." %} {% assign summary_getGenerate="returns if the server is set to generate coins or not." %} {% assign summary_getGovernanceInfo="returns an object containing governance parameters." %} {% assign summary_getHashesPerSec="was removed in Bitcoin Core 0.11.0." %}