Minor improvements to devdoc: AddWitnessAddress

This commit is contained in:
Jonathan Cross 2017-04-23 17:34:51 +02:00
parent f23e7a98b2
commit 5660c58612
No known key found for this signature in database
GPG key ID: D8578DF8EA7CCF1B

View file

@ -7,14 +7,13 @@ http://opensource.org/licenses/MIT.
##### AddWitnessAddress ##### AddWitnessAddress
{% include helpers/subhead-links.md %} {% include helpers/subhead-links.md %}
{% assign summary_addWitnessAddress="adds a witness address for a script (with pubkey or redeemscript known)." %} {% assign summary_addWitnessAddress="adds a witness address for a script (with pubkey or redeem script known)." %}
{% autocrossref %} {% autocrossref %}
*Added in Bitcoin Core 0.13.0* *Added in Bitcoin Core 0.13.0*
*Requires wallet support. Requires an unlocked wallet or an *Requires wallet support. Requires an unlocked wallet or an unencrypted wallet.*
unencrypted wallet.*
The `addwitnessaddress` RPC {{summary_addWitnessAddress}} The `addwitnessaddress` RPC {{summary_addWitnessAddress}}
@ -46,7 +45,7 @@ bitcoin-cli addwitnessaddress 1BRo7qrYHMPrzdBDzfjmzteBdYAyTMXW75
Result: Result:
The RPC is disabled by default on mainet as long as Segregated Witness has not been activated. The RPC is disabled by default on mainnet as long as Segregated Witness has not been activated.
`-walletprematurewitness` enables the RPC. `-walletprematurewitness` enables the RPC.
{% highlight text %} {% highlight text %}
@ -55,4 +54,7 @@ The RPC is disabled by default on mainet as long as Segregated Witness has not b
*See also* *See also*
* [BIP-141 - Segregated Witness](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki)
* [BIP-142 - Address Format for Segregated Witness](https://github.com/bitcoin/bips/blob/master/bip-0142.mediawiki)
{% endautocrossref %} {% endautocrossref %}