mfc: allow a 'close_to' address to be passed in

This will allow us to let `fundchannel` handle a close to address, also
This commit is contained in:
niftynei
2020-10-14 21:36:20 -05:00
committed by Rusty Russell
parent 60be62a3bb
commit 628df74e26
3 changed files with 39 additions and 1 deletions

View File

@@ -53,6 +53,11 @@ If set to \fBfalse\fR, the channel is unpublished\.
node\.
This is a gift to the peer, and you do not get a proof-of-payment
out of this\.
.IP \[bu]
\fIclose_to\fR is a Bitcoin address to which the channel funds should be sent to
on close\. Only valid if both peers have negotiated
\fBoption_upfront_shutdown_script\fR\. Returns \fBclose_to\fR set to
closing script iff is negotiated\.
.RE
@@ -167,4 +172,4 @@ ZmnSCPxj \fI<ZmnSCPxj@protonmail.com\fR> is mainly responsible\.
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
\" SHA256STAMP:c4bf503a2f8d981131960bedc07e9f08a0b65246964852a34df4292a9a36b663
\" SHA256STAMP:70be8ab919df4a69f18103dcf3d1067e4b1d7466eb69ca474ffae3ea1f8d0ae1

View File

@@ -47,6 +47,10 @@ Readiness is indicated by **listpeers** reporting a *state* of
node.
This is a gift to the peer, and you do not get a proof-of-payment
out of this.
* *close_to* is a Bitcoin address to which the channel funds should be sent to
on close. Only valid if both peers have negotiated
`option_upfront_shutdown_script`. Returns `close_to` set to
closing script iff is negotiated.
There must be at least one entry in *destinations*;
it cannot be an empty array.