cln-rpc: Add mindepth after rebase on master

This commit is contained in:
Christian Decker 2022-07-08 10:46:08 +02:00 committed by Rusty Russell
parent 6df0a9281f
commit b6a4cbbf98
6 changed files with 312 additions and 289 deletions

View file

@ -397,6 +397,7 @@
"FundchannelResponse": {
"FundChannel.channel_id": 4,
"FundChannel.close_to": 5,
"FundChannel.mindepth": 6,
"FundChannel.outnum": 3,
"FundChannel.tx": 1,
"FundChannel.txid": 2

View file

@ -1159,6 +1159,7 @@ message FundchannelResponse {
uint32 outnum = 3;
bytes channel_id = 4;
optional bytes close_to = 5;
optional uint32 mindepth = 6;
}
message GetrouteRequest {

View file

@ -862,6 +862,7 @@ impl From<&responses::FundchannelResponse> for pb::FundchannelResponse {
outnum: c.outnum.clone(), // Rule #2 for type u32
channel_id: hex::decode(&c.channel_id).unwrap(), // Rule #2 for type hex
close_to: c.close_to.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex?
mindepth: c.mindepth.clone(), // Rule #2 for type u32?
}
}
}

View file

@ -2566,6 +2566,8 @@ pub mod responses {
pub channel_id: String,
#[serde(alias = "close_to", skip_serializing_if = "Option::is_none")]
pub close_to: Option<String>,
#[serde(alias = "mindepth", skip_serializing_if = "Option::is_none")]
pub mindepth: Option<u32>,
}
/// The features understood by the destination node

View file

@ -105,6 +105,13 @@ def listpeers_peers_channels_funding2py(m):
})
def listpeers_peers_channels_alias2py(m):
return remove_default({
"local": m.local, # PrimitiveField in generate_composite
"remote": m.remote, # PrimitiveField in generate_composite
})
def listpeers_peers_channels_state_changes2py(m):
return remove_default({
"timestamp": m.timestamp, # PrimitiveField in generate_composite
@ -776,6 +783,7 @@ def fundchannel2py(m):
"outnum": m.outnum, # PrimitiveField in generate_composite
"channel_id": hexlify(m.channel_id), # PrimitiveField in generate_composite
"close_to": hexlify(m.close_to), # PrimitiveField in generate_composite
"mindepth": m.mindepth, # PrimitiveField in generate_composite
})

File diff suppressed because one or more lines are too long