schema: Add missing mindepth argument to fundchannel

This was likely missed during the zeroconf PR.

Changelog-None
This commit is contained in:
Christian Decker 2022-07-14 11:14:29 +02:00 committed by Rusty Russell
parent 20b2f0af85
commit 217ce4c03c
6 changed files with 259 additions and 250 deletions

View file

@ -390,6 +390,7 @@
"FundChannel.id": 9,
"FundChannel.minconf": 10,
"FundChannel.minconf[]": 4,
"FundChannel.mindepth": 12,
"FundChannel.push_msat": 5,
"FundChannel.request_amt": 7,
"FundChannel.utxos[]": 11

View file

@ -1151,6 +1151,7 @@ message FundchannelRequest {
optional Amount request_amt = 7;
optional string compact_lease = 8;
repeated Outpoint utxos = 11;
optional uint32 mindepth = 12;
}
message FundchannelResponse {

View file

@ -1460,6 +1460,7 @@ impl From<&pb::FundchannelRequest> for requests::FundchannelRequest {
request_amt: c.request_amt.as_ref().map(|a| a.into()), // Rule #1 for type msat?
compact_lease: c.compact_lease.clone(), // Rule #1 for type string?
utxos: Some(c.utxos.iter().map(|s| s.into()).collect()), // Rule #4
mindepth: c.mindepth.clone(), // Rule #1 for type u32?
}
}
}

View file

@ -724,6 +724,8 @@ pub mod requests {
pub compact_lease: Option<String>,
#[serde(alias = "utxos", skip_serializing_if = "crate::is_none_or_empty")]
pub utxos: Option<Vec<Outpoint>>,
#[serde(alias = "mindepth", skip_serializing_if = "Option::is_none")]
pub mindepth: Option<u32>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]

File diff suppressed because one or more lines are too long

View file

@ -40,6 +40,10 @@
"items": {
"type": "outpoint"
}
},
"mindepth": {
"description": "Number of confirmations required before we consider the channel active",
"type": "u32"
}
}
}