mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
doc/lightning-invoice: document warnings.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c8c3294a23
commit
f9fba1d7c6
2 changed files with 39 additions and 3 deletions
|
@ -2,12 +2,12 @@
|
||||||
.\" Title: lightning-invoice
|
.\" Title: lightning-invoice
|
||||||
.\" 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: 09/27/2018
|
||||||
.\" Manual: \ \&
|
.\" Manual: \ \&
|
||||||
.\" Source: \ \&
|
.\" Source: \ \&
|
||||||
.\" Language: English
|
.\" Language: English
|
||||||
.\"
|
.\"
|
||||||
.TH "LIGHTNING\-INVOICE" "7" "04/26/2018" "\ \&" "\ \&"
|
.TH "LIGHTNING\-INVOICE" "7" "09/27/2018" "\ \&" "\ \&"
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
.\" * Define some portability stuff
|
.\" * Define some portability stuff
|
||||||
.\" -----------------------------------------------------------------
|
.\" -----------------------------------------------------------------
|
||||||
|
@ -49,7 +49,9 @@ The \fIfallbacks\fR array is one or more fallback addresses to include in the in
|
||||||
The \fIpreimage\fR is a 64\-digit hex string to be used as payment preimage for the created invoice\&. By default, if unspecified, lightningd will generate a secure pseudorandom preimage seeded from an appropriate entropy source on your system\&. \fBIMPORTANT\fR: if you specify the \fIpreimage\fR, you are responsible, to ensure appropriate care for generating using a secure pseudorandom generator seeded with sufficient entropy, and keeping the preimage secret\&. This parameter is an advanced feature intended for use with cutting\-edge cryptographic protocols and should not be used unless explicitly needed\&.
|
The \fIpreimage\fR is a 64\-digit hex string to be used as payment preimage for the created invoice\&. By default, if unspecified, lightningd will generate a secure pseudorandom preimage seeded from an appropriate entropy source on your system\&. \fBIMPORTANT\fR: if you specify the \fIpreimage\fR, you are responsible, to ensure appropriate care for generating using a secure pseudorandom generator seeded with sufficient entropy, and keeping the preimage secret\&. This parameter is an advanced feature intended for use with cutting\-edge cryptographic protocols and should not be used unless explicitly needed\&.
|
||||||
.SH "RETURN VALUE"
|
.SH "RETURN VALUE"
|
||||||
.sp
|
.sp
|
||||||
On success, a hash is returned as \fIpayment_hash\fR to be given to the payer, and the \fIexpiry_time\fR as a UNIX timestamp\&. It also returns a BOLT11 invoice as \fIbolt11\fR to be given to the payer\&. On failure, an error is returned and no invoice is created\&. If the lightning process fails before responding, the caller should use lightning\-listinvoice(7) to query whether this invoice was created or not\&.
|
On success, a hash is returned as \fIpayment_hash\fR to be given to the payer, and the \fIexpiry_time\fR as a UNIX timestamp\&. It also returns a BOLT11 invoice as \fIbolt11\fR to be given to the payer\&.
|
||||||
|
.sp
|
||||||
|
On failure, an error is returned and no invoice is created\&. If the lightning process fails before responding, the caller should use lightning\-listinvoice(7) to query whether this invoice was created or not\&.
|
||||||
.sp
|
.sp
|
||||||
The following error codes may occur:
|
The following error codes may occur:
|
||||||
.sp
|
.sp
|
||||||
|
@ -89,6 +91,32 @@ already exists\&.
|
||||||
\fIpreimage\fR
|
\fIpreimage\fR
|
||||||
already exists\&.
|
already exists\&.
|
||||||
.RE
|
.RE
|
||||||
|
.sp
|
||||||
|
One of the following warnings may occur (on success):
|
||||||
|
.sp
|
||||||
|
.RS 4
|
||||||
|
.ie n \{\
|
||||||
|
\h'-04'\(bu\h'+03'\c
|
||||||
|
.\}
|
||||||
|
.el \{\
|
||||||
|
.sp -1
|
||||||
|
.IP \(bu 2.3
|
||||||
|
.\}
|
||||||
|
\fIwarning_offline\fR
|
||||||
|
if no channel with a currently connected peer has the incoming capacity to pay this invoice
|
||||||
|
.RE
|
||||||
|
.sp
|
||||||
|
.RS 4
|
||||||
|
.ie n \{\
|
||||||
|
\h'-04'\(bu\h'+03'\c
|
||||||
|
.\}
|
||||||
|
.el \{\
|
||||||
|
.sp -1
|
||||||
|
.IP \(bu 2.3
|
||||||
|
.\}
|
||||||
|
\fIwarning_capacity\fR
|
||||||
|
if there is no channel at all with sufficient incoming capacity to pay this invoice\&.
|
||||||
|
.RE
|
||||||
.SH "AUTHOR"
|
.SH "AUTHOR"
|
||||||
.sp
|
.sp
|
||||||
Rusty Russell <rusty@rustcorp\&.com\&.au> is mainly responsible\&.
|
Rusty Russell <rusty@rustcorp\&.com\&.au> is mainly responsible\&.
|
||||||
|
|
|
@ -55,6 +55,7 @@ On success, a hash is returned as 'payment_hash' to be given to the payer,
|
||||||
and the 'expiry_time' as a UNIX timestamp.
|
and the 'expiry_time' as a UNIX timestamp.
|
||||||
It also returns a BOLT11 invoice as 'bolt11' to be given to the
|
It also returns a BOLT11 invoice as 'bolt11' to be given to the
|
||||||
payer.
|
payer.
|
||||||
|
|
||||||
On failure, an error is returned and no invoice is created. If the
|
On failure, an error is returned and no invoice is created. If the
|
||||||
lightning process fails before responding, the caller should use
|
lightning process fails before responding, the caller should use
|
||||||
lightning-listinvoice(7) to query whether this invoice was created or not.
|
lightning-listinvoice(7) to query whether this invoice was created or not.
|
||||||
|
@ -65,6 +66,13 @@ The following error codes may occur:
|
||||||
* 900. An invoice with the given 'label' already exists.
|
* 900. An invoice with the given 'label' already exists.
|
||||||
* 901. An invoice with the given 'preimage' already exists.
|
* 901. An invoice with the given 'preimage' already exists.
|
||||||
|
|
||||||
|
One of the following warnings may occur (on success):
|
||||||
|
|
||||||
|
* 'warning_offline' if no channel with a currently
|
||||||
|
connected peer has the incoming capacity to pay this invoice
|
||||||
|
* 'warning_capacity' if there is no channel at all with sufficient
|
||||||
|
incoming capacity to pay this invoice.
|
||||||
|
|
||||||
AUTHOR
|
AUTHOR
|
||||||
------
|
------
|
||||||
Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.
|
Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.
|
||||||
|
|
Loading…
Add table
Reference in a new issue