mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
Updated docs to reflect bech32 default
The manpage did not specify the name of the named parameter (addresstype). It does now. Fixed manpage grammar errors. Signed-off-by: Mark Beckwith <wythe@intrig.com>
This commit is contained in:
committed by
Rusty Russell
parent
231f14e645
commit
369bd274a1
@@ -2,12 +2,12 @@
|
|||||||
.\" Title: lightning-newaddr
|
.\" Title: lightning-newaddr
|
||||||
.\" Author: [see the "AUTHOR" section]
|
.\" Author: [see the "AUTHOR" section]
|
||||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
||||||
.\" Date: 04/26/2018
|
.\" Date: 07/23/2018
|
||||||
.\" Manual: \ \&
|
.\" Manual: \ \&
|
||||||
.\" Source: \ \&
|
.\" Source: \ \&
|
||||||
.\" Language: English
|
.\" Language: English
|
||||||
.\"
|
.\"
|
||||||
.TH "LIGHTNING\-NEWADDR" "7" "04/26/2018" "\ \&" "\ \&"
|
.TH "LIGHTNING\-NEWADDR" "7" "07/23/2018" "\ \&" "\ \&"
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
.\" * Define some portability stuff
|
.\" * Define some portability stuff
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
@@ -31,22 +31,22 @@
|
|||||||
lightning-newaddr \- Command for generating a new address to be used by c\-lightning\&.
|
lightning-newaddr \- Command for generating a new address to be used by c\-lightning\&.
|
||||||
.SH "SYNOPSIS"
|
.SH "SYNOPSIS"
|
||||||
.sp
|
.sp
|
||||||
\fBnewaddr\fR [ \fIp2sh\-segwit\fR | \fIbech32\fR ]
|
\fBnewaddr\fR [ \fIaddresstype\fR ]
|
||||||
.SH "DESCRIPTION"
|
.SH "DESCRIPTION"
|
||||||
.sp
|
.sp
|
||||||
The \fBnewaddr\fR RPC command generates a new address which can subsequently be used to fund channels managed by the c\-lightning node\&.
|
The \fBnewaddr\fR RPC command generates a new address which can subsequently be used to fund channels managed by the c\-lightning node\&.
|
||||||
.sp
|
.sp
|
||||||
The funding transaction needs to be confirmed before funds can be used\&.
|
The funding transaction needs to be confirmed before funds can be used\&.
|
||||||
.sp
|
.sp
|
||||||
The optional parameter specifies the type of address wanted i\&.e\&. p2sh\-segwit (e\&.g\&. 2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta on bitcoin testnet or 3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3 on bitcoin mainnet) or bech32 (e\&.g\&. tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet)\&.
|
\fIaddresstype\fR specifies the type of address wanted; i\&.e\&. p2sh\-segwit (e\&.g\&. 2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta on bitcoin testnet or 3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3 on bitcoin mainnet) or bech32 (e\&.g\&. tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet)\&.
|
||||||
.sp
|
.sp
|
||||||
If not specified the address generated is p2sh\-segwit\&.
|
If not specified the address generated is bech32\&.
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
.sp
|
.sp
|
||||||
On success, a new address will be returned\&.
|
On success, a new address will be returned\&.
|
||||||
.SH "ERRORS"
|
.SH "ERRORS"
|
||||||
.sp
|
.sp
|
||||||
If a non recognized address type is requested an error message will be returned
|
If an unrecognized address type is requested an error message will be returned\&.
|
||||||
.SH "AUTHOR"
|
.SH "AUTHOR"
|
||||||
.sp
|
.sp
|
||||||
Felix <fixone@gmail\&.com> is mainly responsible\&.
|
Felix <fixone@gmail\&.com> is mainly responsible\&.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ be used by c-lightning.
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
*newaddr* [ 'p2sh-segwit' | 'bech32' ]
|
*newaddr* [ 'addresstype' ]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
@@ -18,13 +18,13 @@ subsequently be used to fund channels managed by the c-lightning node.
|
|||||||
|
|
||||||
The funding transaction needs to be confirmed before funds can be used.
|
The funding transaction needs to be confirmed before funds can be used.
|
||||||
|
|
||||||
The optional parameter specifies the type of address wanted i.e.
|
'addresstype' specifies the type of address wanted; i.e.
|
||||||
p2sh-segwit (e.g. 2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta on bitcoin testnet
|
p2sh-segwit (e.g. 2MxaozoqWwiUcuD9KKgUSrLFDafLqimT9Ta on bitcoin testnet
|
||||||
or 3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3 on bitcoin mainnet) or bech32
|
or 3MZxzq3jBSKNQ2e7dzneo9hy4FvNzmMmt3 on bitcoin mainnet) or bech32
|
||||||
(e.g. tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or
|
(e.g. tb1qu9j4lg5f9rgjyfhvfd905vw46eg39czmktxqgg on bitcoin testnet or
|
||||||
bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet).
|
bc1qwqdg6squsna38e46795at95yu9atm8azzmyvckulcc7kytlcckxswvvzej on bitcoin mainnet).
|
||||||
|
|
||||||
If not specified the address generated is p2sh-segwit.
|
If not specified the address generated is bech32.
|
||||||
|
|
||||||
RETURN VALUE
|
RETURN VALUE
|
||||||
------------
|
------------
|
||||||
@@ -32,7 +32,7 @@ On success, a new address will be returned.
|
|||||||
|
|
||||||
ERRORS
|
ERRORS
|
||||||
------
|
------
|
||||||
If a non recognized address type is requested an error message will be returned
|
If an unrecognized address type is requested an error message will be returned.
|
||||||
|
|
||||||
AUTHOR
|
AUTHOR
|
||||||
------
|
------
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ static void json_newaddr(struct command *cmd, const char *buffer UNUSED,
|
|||||||
static const struct json_command newaddr_command = {
|
static const struct json_command newaddr_command = {
|
||||||
"newaddr",
|
"newaddr",
|
||||||
json_newaddr,
|
json_newaddr,
|
||||||
"Get a new {bech32, p2sh-segwit} address to fund a channel", false,
|
"Get a new {bech32, p2sh-segwit} address to fund a channel (default is bech32)", false,
|
||||||
"Generates a new address that belongs to the internal wallet. Funds sent to these addresses will be managed by lightningd. Use `withdraw` to withdraw funds to an external wallet."
|
"Generates a new address that belongs to the internal wallet. Funds sent to these addresses will be managed by lightningd. Use `withdraw` to withdraw funds to an external wallet."
|
||||||
};
|
};
|
||||||
AUTODATA(json_command, &newaddr_command);
|
AUTODATA(json_command, &newaddr_command);
|
||||||
|
|||||||
Reference in New Issue
Block a user