Skip to content

Commit

Permalink
Return is_public for rpc list_channels
Browse files Browse the repository at this point in the history
  • Loading branch information
contrun committed Oct 29, 2024
1 parent e2bd3dc commit 90030d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rpc/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ pub(crate) struct ListChannelsResult {
#[derive(Clone, Serialize)]
pub(crate) struct Channel {
channel_id: Hash256,
is_public: bool,
#[serde_as(as = "Option<EntityHex>")]
channel_outpoint: Option<OutPoint>,
#[serde_as(as = "DisplayFromStr")]
Expand Down Expand Up @@ -374,6 +375,7 @@ where
.get_channel_actor_state(&channel_id)
.map(|state| Channel {
channel_id,
is_public: state.is_public(),
channel_outpoint: state.get_funding_transaction_outpoint(),
peer_id,
funding_udt_type_script: state
Expand Down

0 comments on commit 90030d8

Please sign in to comment.