mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-20 13:54:36 +01:00
schema: Add missing mindepth
argument to fundchannel
This was likely missed during the zeroconf PR. Changelog-None
This commit is contained in:
parent
20b2f0af85
commit
217ce4c03c
6 changed files with 259 additions and 250 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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?
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
@ -40,6 +40,10 @@
|
|||
"items": {
|
||||
"type": "outpoint"
|
||||
}
|
||||
},
|
||||
"mindepth": {
|
||||
"description": "Number of confirmations required before we consider the channel active",
|
||||
"type": "u32"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue