Skip to content

Commit

Permalink
schema: Add missing mindepth argument to fundchannel
Browse files Browse the repository at this point in the history
This was likely missed during the zeroconf PR.

Changelog-None
  • Loading branch information
cdecker committed Jul 14, 2022
1 parent 7e93891 commit 4c0ba71
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cln-grpc/proto/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions cln-grpc/src/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions cln-rpc/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 4 additions & 0 deletions doc/schemas/fundchannel.request.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
"items": {
"type": "outpoint"
}
},
"mindepth": {
"description": "Number of confirmations required before we consider the channel active",
"type": "u32"
}
}
}

0 comments on commit 4c0ba71

Please sign in to comment.