Skip to content

Commit

Permalink
doc: list the error codes of funding_* commands
Browse files Browse the repository at this point in the history
Changelog-None
  • Loading branch information
vasild authored and ZmnSCPxj committed Jan 21, 2020
1 parent 11da88a commit 89466f0
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 12 deletions.
15 changes: 14 additions & 1 deletion doc/lightning-fundchannel_cancel.7

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion doc/lightning-fundchannel_cancel.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ RETURN VALUE
On success, returns confirmation that the channel establishment has been
canceled.

On failure, returns an error.
On error the returned object will contain `code` and `message` properties,
with `code` being one of the following:

- -32602: If the given parameters are wrong.
- -1: Catchall nonspecific error.
- 306: Unknown peer id.

AUTHOR
------
Expand Down
20 changes: 14 additions & 6 deletions doc/lightning-fundchannel_complete.7

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion doc/lightning-fundchannel_complete.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,13 @@ RETURN VALUE
On success, returns a confirmation that *commitments\_secured* and the
derived *channel\_id*.

On failure, returns an error.
On error the returned object will contain `code` and `message` properties,
with `code` being one of the following:

- -32602: If the given parameters are wrong.
- -1: Catchall nonspecific error.
- 305: Peer is not connected.
- 306: Unknown peer id.

AUTHOR
------
Expand Down
22 changes: 20 additions & 2 deletions doc/lightning-fundchannel_start.7

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion doc/lightning-fundchannel_start.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,16 @@ On success, returns the *funding\_address* and the *scriptpubkey* for the channe
If a `close_to` address was provided, will close to this address iff the `close_to` address is
returned in the response. Otherwise, the peer does not support `option_upfront_shutdownscript`.

On failure, returns an error.
On error the returned object will contain `code` and `message` properties,
with `code` being one of the following:

- -32602: If the given parameters are wrong.
- -1: Catchall nonspecific error.
- 300: The amount exceeded the maximum configured funding amount.
- 301: The provided `push_msat` is greater than the provided `amount`.
- 304: Still syncing with bitcoin network
- 305: Peer is not connected.
- 306: Unknown peer id.

AUTHOR
------
Expand Down

0 comments on commit 89466f0

Please sign in to comment.