From 1d5a00e5477f225332e3cbf4f12389ca309aad02 Mon Sep 17 00:00:00 2001 From: niftynei Date: Fri, 9 Jul 2021 11:45:50 -0500 Subject: [PATCH] schema: fixup for dual-funding things --- doc/lightning-openchannel_update.7 | 6 ++++-- doc/lightning-openchannel_update.7.md | 5 +++-- doc/schemas/openchannel_update.schema.json | 6 +++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/doc/lightning-openchannel_update.7 b/doc/lightning-openchannel_update.7 index 3f114ea59..7ac617971 100644 --- a/doc/lightning-openchannel_update.7 +++ b/doc/lightning-openchannel_update.7 @@ -39,7 +39,9 @@ On success, an object is returned, containing: .IP \[bu] \fBcommitments_secured\fR (boolean): whether the \fIpsbt\fR is complete (if true, sign \fIpsbt\fR and call \fBopenchannel_signed\fR to complete the channel open) .IP \[bu] -\fBfunding_outnum\fR (u32, optional): The index of the funding output in the psbt +\fBfunding_outnum\fR (u32): The index of the funding output in the psbt +.IP \[bu] +\fBclose_to\fR (hex, optional): scriptPubkey which we have to close to if we mutual close .RE @@ -87,4 +89,4 @@ lightning-fundchannel_\fBstart\fR(7), lightning-fundchannel_\fBcomplete\fR(7), Main web site: \fIhttps://github.com/ElementsProject/lightning\fR -\" SHA256STAMP:9d0366ebbbef8d86e87174133a18113393c7ad4657f3d90456ff28664109894b +\" SHA256STAMP:4d28ceeb8b4f2052bccdc93bf2e0b08fa829a2177b1fad34b7c347e8a682845e diff --git a/doc/lightning-openchannel_update.7.md b/doc/lightning-openchannel_update.7.md index e92e28483..d5a49cc4d 100644 --- a/doc/lightning-openchannel_update.7.md +++ b/doc/lightning-openchannel_update.7.md @@ -33,7 +33,8 @@ On success, an object is returned, containing: - **channel_id** (hex): the channel id of the channel (always 64 characters) - **psbt** (string): the PSBT of the funding transaction - **commitments_secured** (boolean): whether the *psbt* is complete (if true, sign *psbt* and call `openchannel_signed` to complete the channel open) -- **funding_outnum** (u32, optional): The index of the funding output in the psbt +- **funding_outnum** (u32): The index of the funding output in the psbt +- **close_to** (hex, optional): scriptPubkey which we have to close to if we mutual close [comment]: # (GENERATE-FROM-SCHEMA-END) If *commitments_secured* is true, will also return: @@ -69,4 +70,4 @@ RESOURCES --------- Main web site: -[comment]: # ( SHA256STAMP:24ebba507f0bc155be12a34c5bebc8002964985afed0f2b3100e809f545a4ae7) +[comment]: # ( SHA256STAMP:58656d914cc827b7dfed7c97d217dbcf66a7abd65e5ab60d30de011c6f8e53ca) diff --git a/doc/schemas/openchannel_update.schema.json b/doc/schemas/openchannel_update.schema.json index 14d4f3101..7f59d43d3 100644 --- a/doc/schemas/openchannel_update.schema.json +++ b/doc/schemas/openchannel_update.schema.json @@ -2,7 +2,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, - "required": [ "channel_id", "psbt", "commitments_secured"], + "required": [ "channel_id", "psbt", "commitments_secured", "funding_outnum" ], "properties": { "channel_id": { "type": "hex", @@ -21,6 +21,10 @@ "funding_outnum": { "type": "u32", "description": "The index of the funding output in the psbt" + }, + "close_to": { + "type": "hex", + "description": "scriptPubkey which we have to close to if we mutual close" } } }