Skip to content

Commit

Permalink
doc/lightning-multifundchannel.7.md: Describe minchannels flag of `…
Browse files Browse the repository at this point in the history
…multifundchannel`.
  • Loading branch information
ZmnSCPxj authored and rustyrussell committed Sep 9, 2020
1 parent 8cfec40 commit 5a2b219
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
24 changes: 22 additions & 2 deletions doc/lightning-multifundchannel.7

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

19 changes: 18 additions & 1 deletion doc/lightning-multifundchannel.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lightning-multifundchannel -- Command for establishing many lightning channels
SYNOPSIS
--------

**multifundchannel** *destinations* \[*feerate*\] \[*minconf*\] \[*utxos*\]
**multifundchannel** *destinations* \[*feerate*\] \[*minconf*\] \[*utxos*\] \[*minchannels*\]

DESCRIPTION
-----------
Expand Down Expand Up @@ -68,6 +68,11 @@ outputs should have. Default is 1.
*utxos* specifies the utxos to be used to fund the channel, as an array
of "txid:vout".

*minchannels*, if specified, will re-attempt funding as long as at least
this many peers remain (must not be zero).
The **multifundchannel** command will only fail if too many peers fail
the funding process.

RETURN VALUE
------------

Expand All @@ -76,13 +81,25 @@ transaction is returned.
This command opens multiple channels with a single large transaction,
thus only one transaction is returned.

If *minchannels* was specified and is less than the number of destinations,
then it is possible that one or more of the destinations
do not have a channel even if **multifundchannel** succeeded.

An array of *channel\_ids* is returned;
each entry of the array is an object,
with an *id* field being the node ID of the peer,
an *outnum* field being the output number of the transaction
that anchors this channel,
and *channel_id* field being the channel ID with that peer.

An array of *failed* is returned,
which contains the destinations that were removed
due to failures (this can only happen on success if *minchannels* was specified).
Each entry of the array is an object,
with an *id* field being the node ID of the removed peer,
*method* field describing what phase of funding the peer failed,
and *error* field of the exact error returned by the method.

On failure, none of the channels are created.

The following error codes may occur:
Expand Down

0 comments on commit 5a2b219

Please sign in to comment.