doc: Fix wrong_funding description in manpage and type in schema

This commit is contained in:
Kristaps Kaupe 2022-07-20 13:29:56 +03:00 committed by Christian Decker
parent 0868fa9f1e
commit 775d6ba193
5 changed files with 5 additions and 5 deletions

View file

@ -403,7 +403,7 @@ message CloseRequest {
optional uint32 unilateraltimeout = 2; optional uint32 unilateraltimeout = 2;
optional string destination = 3; optional string destination = 3;
optional string fee_negotiation_step = 4; optional string fee_negotiation_step = 4;
optional bytes wrong_funding = 5; optional Outpoint wrong_funding = 5;
optional bool force_lease_closed = 6; optional bool force_lease_closed = 6;
repeated Feerate feerange = 7; repeated Feerate feerange = 7;
} }

View file

@ -1080,7 +1080,7 @@ impl From<&pb::CloseRequest> for requests::CloseRequest {
unilateraltimeout: c.unilateraltimeout.clone(), // Rule #1 for type u32? unilateraltimeout: c.unilateraltimeout.clone(), // Rule #1 for type u32?
destination: c.destination.clone(), // Rule #1 for type string? destination: c.destination.clone(), // Rule #1 for type string?
fee_negotiation_step: c.fee_negotiation_step.clone(), // Rule #1 for type string? fee_negotiation_step: c.fee_negotiation_step.clone(), // Rule #1 for type string?
wrong_funding: c.wrong_funding.clone().map(|v| hex::encode(v)), // Rule #1 for type txid? wrong_funding: c.wrong_funding.clone(), // Rule #1 for type outpoint?
force_lease_closed: c.force_lease_closed.clone(), // Rule #1 for type boolean? force_lease_closed: c.force_lease_closed.clone(), // Rule #1 for type boolean?
feerange: Some(c.feerange.iter().map(|s| s.into()).collect()), // Rule #4 feerange: Some(c.feerange.iter().map(|s| s.into()).collect()), // Rule #4
} }

2
cln-rpc/src/model.rs generated
View file

@ -219,7 +219,7 @@ pub mod requests {
#[serde(alias = "fee_negotiation_step", skip_serializing_if = "Option::is_none")] #[serde(alias = "fee_negotiation_step", skip_serializing_if = "Option::is_none")]
pub fee_negotiation_step: Option<String>, pub fee_negotiation_step: Option<String>,
#[serde(alias = "wrong_funding", skip_serializing_if = "Option::is_none")] #[serde(alias = "wrong_funding", skip_serializing_if = "Option::is_none")]
pub wrong_funding: Option<String>, pub wrong_funding: Option<Outpoint>,
#[serde(alias = "force_lease_closed", skip_serializing_if = "Option::is_none")] #[serde(alias = "force_lease_closed", skip_serializing_if = "Option::is_none")]
pub force_lease_closed: Option<bool>, pub force_lease_closed: Option<bool>,
#[serde(alias = "feerange", skip_serializing_if = "crate::is_none_or_empty")] #[serde(alias = "feerange", skip_serializing_if = "crate::is_none_or_empty")]

View file

@ -50,7 +50,7 @@ we quickly accept the peer's proposal.
The default is "50%". The default is "50%".
*wrong_funding_txid* can only be specified if both sides have offered *wrong_funding* can only be specified if both sides have offered
the "shutdown_wrong_funding" feature (enabled by the the "shutdown_wrong_funding" feature (enabled by the
**experimental-shutdown-wrong-funding** option): it must be a **experimental-shutdown-wrong-funding** option): it must be a
transaction id followed by a colon then the output number. Instead of transaction id followed by a colon then the output number. Instead of

View file

@ -23,7 +23,7 @@
"description": "" "description": ""
}, },
"wrong_funding": { "wrong_funding": {
"type": "txid", "type": "outpoint",
"description": "" "description": ""
}, },
"force_lease_closed": { "force_lease_closed": {