Formatting and example updates

This commit is contained in:
thephez 2017-10-11 11:36:11 -04:00
parent 252512bbf8
commit d9fba246ca
6 changed files with 26 additions and 21 deletions

View file

@ -88,7 +88,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}} * [GetBlockHeader][rpc getblockheader]: {{summary_getBlockHeader}} {{NEW0_12_0}}
* [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}} * [GetBlockHeaders][rpc getblockheaders]: {{summary_getBlockHeaders}} {{DASH_NEW0_12_1}}
* [GetChainTips][rpc getchaintips]: {{summary_getChainTips}} {{DASH_UPDATED0_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}} * [GetMemPoolInfo][rpc getmempoolinfo]: {{summary_getMemPoolInfo}} {{UPDATED0_12_0}}
* [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}} {{UPDATED0_13_0}} * [GetRawMemPool][rpc getrawmempool]: {{summary_getRawMemPool}} {{UPDATED0_13_0}}
* [GetSpentInfo][rpc getspentinfo]: {{summary_getSpentInfo}} {{DASH_NEW0_12_1}} * [GetSpentInfo][rpc getspentinfo]: {{summary_getSpentInfo}} {{DASH_NEW0_12_1}}

View file

@ -7,7 +7,7 @@ http://opensource.org/licenses/MIT.
##### GetDifficulty ##### GetDifficulty
{% include helpers/subhead-links.md %} {% 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 %} {% autocrossref %}

View file

@ -60,7 +60,7 @@ Result:
*See also* *See also*
* [GetDifficulty][rpc getdifficulty]: {{summary_getDifficultly}} * [GetDifficulty][rpc getdifficulty]: {{summary_getDifficulty}}
* [GetBlock][rpc getblock]: {{summary_getBlock}} * [GetBlock][rpc getblock]: {{summary_getBlock}}
{% endautocrossref %} {% endautocrossref %}

View file

@ -137,7 +137,7 @@ The `getrawmempool` RPC {{summary_getRawMemPool}}
The default (`false`): The default (`false`):
{% highlight bash %} {% highlight bash %}
bitcoin-cli getrawmempool dash-cli getrawmempool
{% endhighlight %} {% endhighlight %}
Result: Result:
@ -158,18 +158,19 @@ Result:
{% highlight json %} {% highlight json %}
{ {
"9dc994e03e387ff2d2709fbe86edede9f3d7aaddea7f75694495e415561b22fe": { "286b3ec21e6ce5463fc712c98d86e02353525e09452113836651f3f91e562354": {
"size": 3471, "size": 225,
"fee": 0.00080520, "fee": 0.00000225,
"modifiedfee": 0.00080520, "modifiedfee": 0.00000225,
"time": 1507217951, "time": 1507735322,
"height": 4660, "height": 7940,
"startingpriority": 553299903846.1538, "startingpriority": 0,
"currentpriority": 553299903846.1538, "currentpriority": 0,
"descendantcount": 1, "descendantcount": 4,
"descendantsize": 3471, "descendantsize": 901,
"descendantfees": 80520, "descendantfees": 902,
"depends": [ "depends": [
"2aacf53e0e15d3b4d778837792c7b6bd298edd3c41a0608586bdec41adcfe7c4"
] ]
} }
} }

View file

@ -2,7 +2,7 @@
This file is licensed under the MIT License (MIT) available on This file is licensed under the MIT License (MIT) available on
http://opensource.org/licenses/MIT. http://opensource.org/licenses/MIT.
{% endcomment %} {% endcomment %}
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md" %}# {% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/getspentinfo.md" %}
##### GetSpentInfo ##### GetSpentInfo
{% include helpers/subhead-links.md %} {% include helpers/subhead-links.md %}
@ -62,16 +62,21 @@ Get the txid and index where an output is spent:
dash-cli getspentinfo \ dash-cli getspentinfo \
''' '''
{ {
"txid": "e0a06b47f0de6f3851a228d5ac377ac38b495adf04298c43e951e679c5b0aa8f", \ "txid": "0456aaf51a8df21dd47c2a06ede046a5bf7403bcb95d14d1d71b178c189fb933", \
"index": 0 "index": 0
} }
{% endhighlight %} {% endhighlight %}
Result: Result:
**Example needed**
{% highlight json %} {% highlight json %}
{
"txid": "14e874421350840e9d43965967c5a989e7d41ad361ef37484ee67d01d433ecfa",
"index": 1,
"height": 7742
}
{% endhighlight %} {% endhighlight %}
*See also: none*
{% endautocrossref %} {% endautocrossref %}

View file

@ -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_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_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_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_generate="mines blocks immediately (before the RPC call returns)." %}
{% assign summary_generateToAddress="mines blocks immediately to a specified address." %} {% assign summary_generateToAddress="mines blocks immediately to a specified address." %}
{% assign summary_getAccount="returns the name of the account associated with the given 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_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_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_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_getGenerate="returns if the server is set to generate coins or not." %}
{% assign summary_getGovernanceInfo="returns an object containing governance parameters." %} {% assign summary_getGovernanceInfo="returns an object containing governance parameters." %}
{% assign summary_getHashesPerSec="was removed in Bitcoin Core 0.11.0." %} {% assign summary_getHashesPerSec="was removed in Bitcoin Core 0.11.0." %}