Skip to content

Commit

Permalink
cln-grpc: API updates after 8dd51d1
Browse files Browse the repository at this point in the history
Changing the JSON schemas changes this, and I didn't rebuild!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed May 19, 2022
1 parent abd01a1 commit c7d359b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .msggen.json
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,7 @@
"ListFunds.outputs[].blockheight": 8,
"ListFunds.outputs[].output": 2,
"ListFunds.outputs[].redeemscript": 6,
"ListFunds.outputs[].reserved": 9,
"ListFunds.outputs[].scriptpubkey": 4,
"ListFunds.outputs[].status": 7,
"ListFunds.outputs[].txid": 1
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 @@ -272,6 +272,7 @@ message ListfundsOutputs {
optional string address = 5;
optional bytes redeemscript = 6;
ListfundsOutputsStatus status = 7;
bool reserved = 9;
optional uint32 blockheight = 8;
}

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 @@ -188,6 +188,7 @@ impl From<&responses::ListfundsOutputs> for pb::ListfundsOutputs {
address: c.address.clone(), // Rule #2 for type string?
redeemscript: c.redeemscript.as_ref().map(|v| hex::decode(&v).unwrap()), // Rule #2 for type hex?
status: c.status as i32,
reserved: c.reserved.clone(), // Rule #2 for type boolean
blockheight: c.blockheight.clone(), // Rule #2 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 @@ -1286,6 +1286,8 @@ pub mod responses {
// Path `ListFunds.outputs[].status`
#[serde(rename = "status")]
pub status: ListfundsOutputsStatus,
#[serde(alias = "reserved")]
pub reserved: bool,
#[serde(alias = "blockheight", skip_serializing_if = "Option::is_none")]
pub blockheight: Option<u32>,
}
Expand Down

0 comments on commit c7d359b

Please sign in to comment.