RPC - Update fundrawtransaction and gettxout (#156)

* RPC - Remove version from gettxout

* RPC - deprecated reserveChangeKey in fundrawtx
This commit is contained in:
thephez 2019-09-11 14:52:02 -04:00 committed by GitHub
parent 1d8d23d083
commit 3a68e8987a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 12 deletions

View file

@ -135,7 +135,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [GetMerkleBlocks][rpc getmerkleblocks]: {{summary_getMerkleBlocks}} {{DASH_NEW0_14_1}} * [GetMerkleBlocks][rpc getmerkleblocks]: {{summary_getMerkleBlocks}} {{DASH_NEW0_14_1}}
* [GetSpecialTxes][rpc getspecialtxes]: {{summary_getSpecialTxes}} {{DASH_NEW0_13_1}} * [GetSpecialTxes][rpc getspecialtxes]: {{summary_getSpecialTxes}} {{DASH_NEW0_13_1}}
* [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}} {{DASH_UPDATED0_14_1}}
* [GetTxOutProof][rpc gettxoutproof]: {{summary_getTxOutProof}} {{NEW0_11_0}} * [GetTxOutProof][rpc gettxoutproof]: {{summary_getTxOutProof}} {{NEW0_11_0}}
* [GetTxOutSetInfo][rpc gettxoutsetinfo]: {{summary_getTxOutSetInfo}} {{DASH_UPDATED0_14_1}} * [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}}
@ -247,7 +247,7 @@ These RPCs are all Dash-specific and not found in Bitcoin Core
* [CreateRawTransaction][rpc createrawtransaction]: {{summary_createRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_1}} * [CreateRawTransaction][rpc createrawtransaction]: {{summary_createRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_1}}
* [DecodeRawTransaction][rpc decoderawtransaction]: {{summary_decodeRawTransaction}} {{UPDATED0_13_0}} * [DecodeRawTransaction][rpc decoderawtransaction]: {{summary_decodeRawTransaction}} {{UPDATED0_13_0}}
* [DecodeScript][rpc decodescript]: {{summary_decodeScript}} * [DecodeScript][rpc decodescript]: {{summary_decodeScript}}
* [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{DASH_UPDATED0_12_3}} {{UPDATED0_14_0}} * [FundRawTransaction][rpc fundrawtransaction]: {{summary_fundRawTransaction}} {{DASH_UPDATED0_14_1}}
* [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{DASH_UPDATED0_14_1}} * [GetRawTransaction][rpc getrawtransaction]: {{summary_getRawTransaction}} {{DASH_UPDATED0_14_1}}
* [SendRawTransaction][rpc sendrawtransaction]: {{summary_sendRawTransaction}} {{DASH_UPDATED0_14_1}} * [SendRawTransaction][rpc sendrawtransaction]: {{summary_sendRawTransaction}} {{DASH_UPDATED0_14_1}}
* [SignRawTransaction][rpc signrawtransaction]: {{summary_signRawTransaction}} * [SignRawTransaction][rpc signrawtransaction]: {{summary_signRawTransaction}}

View file

@ -62,7 +62,7 @@ Note: For backwards compatibility, passing in a `true` instead of an object will
- n: "→ <br>`reserveChangeKey`" - n: "→ <br>`reserveChangeKey`"
t: "bool" t: "bool"
p: "Optional<br>(0 or 1)" p: "Optional<br>(0 or 1)"
d: "*Added in Bitcoin Core 0.14.0*<br><br>Reserves the change output key from the keypool. The default is `true`. Before 0.14.0, the used keypool key was never marked as change-address key and directly returned to the keypool (leading to address reuse)." d: "*Deprecated and ignored in Dash Core 0.14.1*<br><br>Reserves the change output key from the keypool. The default is `true`. Before Bitcoin Core 0.14.0, the used keypool key was never marked as change-address key and directly returned to the keypool (leading to address reuse)."
- n: "→ <br>`feeRate`" - n: "→ <br>`feeRate`"
t: "numeric (bitcoins)" t: "numeric (bitcoins)"

View file

@ -102,11 +102,6 @@ The `gettxout` RPC {{summary_getTxOut}}
p: "Required<br>(1 or more)" p: "Required<br>(1 or more)"
d: "A P2PKH or P2SH address" d: "A P2PKH or P2SH address"
- n: "→<br>`version`"
t: "number (int)"
p: "Required<br>(exactly 1)"
d: "The transaction version number of the transaction containing the pubkey script"
- n: "→<br>`coinbase`" - n: "→<br>`coinbase`"
t: "bool" t: "bool"
p: "Required<br>(exactly 1)" p: "Required<br>(exactly 1)"
@ -114,7 +109,7 @@ The `gettxout` RPC {{summary_getTxOut}}
{% enditemplate %} {% enditemplate %}
*Example from Dash Core 0.12.2* *Example from Dash Core 0.14.1*
Get the UTXO from the following transaction from the first output index ("0"), Get the UTXO from the following transaction from the first output index ("0"),
searching the memory pool if necessary. searching the memory pool if necessary.
@ -142,7 +137,6 @@ Result:
"ycwoiAibTjpwnoCZSX7S4kiB2H8wULw9qo" "ycwoiAibTjpwnoCZSX7S4kiB2H8wULw9qo"
] ]
}, },
"version": 1,
"coinbase": false "coinbase": false
} }
{% endhighlight %} {% endhighlight %}

View file

@ -179,7 +179,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="#gettxout">GetTxOut</a></td> <td class="tg-yw4l"><a href="#gettxout">GetTxOut</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>
@ -491,7 +491,7 @@ th.tg-sort-header::-moz-selection { background:transparent; }th.tg-sort-header::
<td class="tg-b7b8">Rawtransactions</td> <td class="tg-b7b8">Rawtransactions</td>
<td class="tg-b7b8"><a href="#fundrawtransaction">FundRawTransaction</a></td> <td class="tg-b7b8"><a href="#fundrawtransaction">FundRawTransaction</a></td>
<td class="tg-dzk6">Y</td> <td class="tg-dzk6">Y</td>
<td class="tg-dzk6">Updated in 0.12.3.0</td> <td class="tg-dzk6">Updated in 0.14.1</td>
</tr> </tr>
<tr> <tr>
<td class="tg-yw4l">Rawtransactions</td> <td class="tg-yw4l">Rawtransactions</td>