mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 02:06:13 +00:00
RPC - Add bogosize and disk_size to gettxoutsetinfo
This commit is contained in:
parent
6fb66f6f4a
commit
e0dc221d8a
3 changed files with 20 additions and 13 deletions
|
@ -136,7 +136,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
|
||||||
* [GetSpentInfo][rpc getspentinfo]: {{summary_getSpentInfo}} {{DASH_NEW0_12_1}}
|
* [GetSpentInfo][rpc getspentinfo]: {{summary_getSpentInfo}} {{DASH_NEW0_12_1}}
|
||||||
* [GetTxOut][rpc gettxout]: {{summary_getTxOut}}
|
* [GetTxOut][rpc gettxout]: {{summary_getTxOut}}
|
||||||
* [GetTxOutProof][rpc gettxoutproof]: {{summary_getTxOutProof}} {{NEW0_11_0}}
|
* [GetTxOutProof][rpc gettxoutproof]: {{summary_getTxOutProof}} {{NEW0_11_0}}
|
||||||
* [GetTxOutSetInfo][rpc gettxoutsetinfo]: {{summary_getTxOutSetInfo}}
|
* [GetTxOutSetInfo][rpc gettxoutsetinfo]: {{summary_getTxOutSetInfo}} {{DASH_UPDATED0_14_1}}
|
||||||
* [PreciousBlock][rpc preciousblock]: {{summary_preciousBlock}} {{DASH_NEW0_12_3}} {{NEW0_14_0}}
|
* [PreciousBlock][rpc preciousblock]: {{summary_preciousBlock}} {{DASH_NEW0_12_3}} {{NEW0_14_0}}
|
||||||
* [PruneBlockChain][rpc pruneblockchain]: {{summary_pruneBlockChain}} {{DASH_NEW0_12_3}} {{NEW0_14_0}}
|
* [PruneBlockChain][rpc pruneblockchain]: {{summary_pruneBlockChain}} {{DASH_NEW0_12_3}} {{NEW0_14_0}}
|
||||||
* [VerifyChain][rpc verifychain]: {{summary_verifyChain}}
|
* [VerifyChain][rpc verifychain]: {{summary_verifyChain}}
|
||||||
|
|
|
@ -3,6 +3,7 @@ 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/gettxoutsetinfo.md" %}
|
{% assign filename="_includes/devdoc/dash-core/rpcs/rpcs/gettxoutsetinfo.md" %}
|
||||||
|
<--__-->
|
||||||
|
|
||||||
##### GetTxOutSetInfo
|
##### GetTxOutSetInfo
|
||||||
{% include helpers/subhead-links.md %}
|
{% include helpers/subhead-links.md %}
|
||||||
|
@ -43,16 +44,21 @@ The `gettxoutsetinfo` RPC {{summary_getTxOutSetInfo}}
|
||||||
p: "Required<br>(exactly 1)"
|
p: "Required<br>(exactly 1)"
|
||||||
d: "The number of unspent transaction outputs"
|
d: "The number of unspent transaction outputs"
|
||||||
|
|
||||||
- n: "→<br>`bytes_serialized`"
|
- n: "→<br>`bogosize`"
|
||||||
t: "number (int)"
|
t: "number (int)"
|
||||||
p: "Required<br>(exactly 1)"
|
p: "Required<br>(exactly 1)"
|
||||||
d: "The size of the serialized UTXO set in bytes; not counting overhead, this is the size of the `chainstate` directory in the Bitcoin Core configuration directory"
|
d: "A meaningless metric for UTXO set size"
|
||||||
|
|
||||||
- n: "→<br>`hash_serialized`"
|
- n: "→<br>`hash_serialized_2`"
|
||||||
t: "string (hex)"
|
t: "string (hex)"
|
||||||
p: "Required<br>(exactly 1)"
|
p: "Required<br>(exactly 1)"
|
||||||
d: "A SHA256(SHA256()) hash of the serialized UTXO set; useful for comparing two nodes to see if they have the same set (they should, if they always used the same serialization format and currently have the same best block). The hash is encoded as hex in RPC byte order"
|
d: "A SHA256(SHA256()) hash of the serialized UTXO set; useful for comparing two nodes to see if they have the same set (they should, if they always used the same serialization format and currently have the same best block). The hash is encoded as hex in RPC byte order"
|
||||||
|
|
||||||
|
- n: "→<br>`disk_size`"
|
||||||
|
t: "number (int)"
|
||||||
|
p: "Required<br>(exactly 1)"
|
||||||
|
d: "The estimated size of the chainstate on disk"
|
||||||
|
|
||||||
- n: "→<br>`total_amount`"
|
- n: "→<br>`total_amount`"
|
||||||
t: "number (Dash)"
|
t: "number (Dash)"
|
||||||
p: "Required<br>(exactly 1)"
|
p: "Required<br>(exactly 1)"
|
||||||
|
@ -60,7 +66,7 @@ The `gettxoutsetinfo` RPC {{summary_getTxOutSetInfo}}
|
||||||
|
|
||||||
{% enditemplate %}
|
{% enditemplate %}
|
||||||
|
|
||||||
*Example from Dash Core 0.12.2*
|
*Example from Dash Core 0.14.1*
|
||||||
|
|
||||||
{% highlight bash %}
|
{% highlight bash %}
|
||||||
dash-cli -testnet gettxoutsetinfo
|
dash-cli -testnet gettxoutsetinfo
|
||||||
|
@ -70,13 +76,14 @@ Result:
|
||||||
|
|
||||||
{% highlight json %}
|
{% highlight json %}
|
||||||
{
|
{
|
||||||
"height": 4755,
|
"height": 159358,
|
||||||
"bestblock": "0000000025da0abc9e9937f1c65b3f544a57bb7e8817422f7ff2a89ff32696f4",
|
"bestblock": "0000000000a705ef74a1fc134ea1eba49af8eead40b3df1fc4fb40f5940a0d60",
|
||||||
"transactions": 4748,
|
"transactions": 187542,
|
||||||
"txouts": 10602,
|
"txouts": 366996,
|
||||||
"bytes_serialized": 463925,
|
"bogosize": 28344374,
|
||||||
"hash_serialized": "fce0776d7961b409c4d8a46363c8d049879321861f7f40db97b0432e59532320",
|
"hash_serialized_2": "d7326bdc2d9cb7d91580bfd47d6c2972ab1776c2c33c787873a5fd01986c9377",
|
||||||
"total_amount": 2243585.70000000
|
"disk_size": 21513509,
|
||||||
|
"total_amount": 7517185.08574437
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
|
|
@ -185,7 +185,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
|
||||||
<td class="tg-yw4l">Blockchain</td>
|
<td class="tg-yw4l">Blockchain</td>
|
||||||
<td class="tg-yw4l"><a href="#gettxoutsetinfo">GetTxOutSetInfo</a></td>
|
<td class="tg-yw4l"><a href="#gettxoutsetinfo">GetTxOutSetInfo</a></td>
|
||||||
<td class="tg-baqh">Y</td>
|
<td class="tg-baqh">Y</td>
|
||||||
<td class="tg-baqh"></td>
|
<td class="tg-baqh">Updated in 0.14.1</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tg-b7b8">Blockchain</td>
|
<td class="tg-b7b8">Blockchain</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue