mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 02:06:13 +00:00
Add Debug RPC
This commit is contained in:
parent
97c84724e8
commit
5011081fb5
6 changed files with 46 additions and 1 deletions
|
@ -253,6 +253,8 @@ CVE-2012-2459:
|
|||
'`createmultisig` RPC': rpc createmultisig
|
||||
'`createrawtransaction`': rpc createrawtransaction
|
||||
'`createrawtransaction` RPC': rpc createrawtransaction
|
||||
'`debug`': rpc debug
|
||||
'`debug` RPC': rpc debug
|
||||
'`decoderawtransaction`': rpc decoderawtransaction
|
||||
'`decoderawtransaction` RPC': rpc decoderawtransaction
|
||||
'`decodescript`': rpc decodescript
|
||||
|
|
|
@ -263,6 +263,7 @@ devsearches:
|
|||
- 'ClearBanned': "/en/developer-reference#clearbanned"
|
||||
- 'CreateMultisig': "/en/developer-reference#createmultisig"
|
||||
- 'CreateRawTransaction': "/en/developer-reference#createrawtransaction"
|
||||
- 'Debug': "/en/developer-reference#debug"
|
||||
- 'DecodeRawTransaction': "/en/developer-reference#decoderawtransaction"
|
||||
- 'DecodeScript': "/en/developer-reference#decodescript"
|
||||
- 'DisconnectNode': "/en/developer-reference#disconnectnode"
|
||||
|
|
38
_includes/devdoc/dash-core/rpcs/rpcs/debug.md
Normal file
38
_includes/devdoc/dash-core/rpcs/rpcs/debug.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
{% comment %}
|
||||
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/debug.md" %}
|
||||
|
||||
##### Debug
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% assign summary_debug="changes the debug category from the console." %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The `debug` RPC {{summary_debug}}
|
||||
|
||||
*Parameter #1---debug category*
|
||||
|
||||
{% itemplate ntpd1 %}
|
||||
- n: "Debug category"
|
||||
t: "string"
|
||||
p: "Required<br>(1 or more)"
|
||||
d: "The debug category to activate. Use a comma to specify multiple categories. Categories will be one of the following:<br>• `0` - Disables all categories <br>• `1` - Enables all categories <br>• `addrman` <br>• `alert` <br>• `bench` <br>• `coindb` <br>• `db` <br>• `lock` <br>• `rand` <br>• `rpc` <br>• `selectcoins` <br>• `mempool` <br>• `mempoolrej` <br>• `net` <br>• `proxy` <br>• `prune` <br>• `http` <br>• `libevent` <br>• `tor` <br>• `zmq` <br>• `dash` <br>• `privatesend` <br>• `instantsend` <br>• `masternode` <br>• `spork` <br>• `keepass` <br>• `mnpayments` <br>• `gobject` <br>"
|
||||
|
||||
{% enditemplate %}
|
||||
|
||||
{% highlight bash %}
|
||||
dash-cli -testnet debug "net,mempool"
|
||||
{% endhighlight %}
|
||||
|
||||
Result:
|
||||
|
||||
{% highlight text %}
|
||||
Debug mode: net,mempool
|
||||
{% endhighlight %}
|
||||
|
||||
*See also: none*
|
||||
|
||||
{% endautocrossref %}
|
|
@ -9,6 +9,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
|
|||
{% assign summary_clearBanned="clears list of banned nodes." %}
|
||||
{% assign summary_createMultiSig="creates a P2SH multi-signature address." %}
|
||||
{% assign summary_createRawTransaction="creates an unsigned serialized transaction that spends a previous output to a new output with a P2PKH or P2SH address. The transaction is not stored in the wallet or transmitted to the network." %}
|
||||
{% assign summary_debug="changes the debug category from the console." %}
|
||||
{% assign summary_decodeRawTransaction="decodes a serialized transaction hex string into a JSON object describing the transaction." %}
|
||||
{% assign summary_decodeScript="decodes a hex-encoded P2SH redeem script." %}
|
||||
{% assign summary_disconnectNode="immediately disconnects from a specified node." %}
|
||||
|
@ -112,7 +113,7 @@ This file is licensed under the terms of its source texts{%endcomment%}
|
|||
{% assign summary_signMessage="signs a message with the private key of an address." %}
|
||||
{% assign summary_signMessageWithPrivKey="signs a message with a given private key." %}
|
||||
{% assign summary_signRawTransaction="signs a transaction in the serialized transaction format using private keys stored in the wallet or provided in the call." %}
|
||||
{% assign summary_stop="safely shuts down the Bitcoin Core server." %}
|
||||
{% assign summary_stop="safely shuts down the Dash Core server." %}
|
||||
{% assign summary_submitBlock="accepts a block, verifies it is a valid addition to the block chain, and broadcasts it to the network. Extra parameters are ignored by Bitcoin Core but may be used by mining pools or other programs." %}
|
||||
{% assign summary_validateAddress="returns information about the given Bitcoin address." %}
|
||||
{% assign summary_verifyChain="verifies each entry in the local block chain database." %}
|
||||
|
|
|
@ -92,6 +92,7 @@ http://opensource.org/licenses/MIT.
|
|||
[rpc clearbanned]: /en/developer-reference#clearbanned
|
||||
[rpc createmultisig]: /en/developer-reference#createmultisig
|
||||
[rpc createrawtransaction]: /en/developer-reference#createrawtransaction
|
||||
[rpc debug]: /en/developer-reference#debug
|
||||
[rpc decoderawtransaction]: /en/developer-reference#decoderawtransaction
|
||||
[rpc decodescript]: /en/developer-reference#decodescript
|
||||
[rpc disconnectnode]: /en/developer-reference#disconnectnode
|
||||
|
|
|
@ -84,6 +84,8 @@ untrusted source.
|
|||
|
||||
{% include devdoc/dash-core/rpcs/rpcs/createmultisig.md %}
|
||||
|
||||
{% include devdoc/dash-core/rpcs/rpcs/debug.md %}
|
||||
|
||||
{% include devdoc/dash-core/rpcs/rpcs/createrawtransaction.md %}
|
||||
|
||||
{% include devdoc/dash-core/rpcs/rpcs/decoderawtransaction.md %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue