]> git.bitcoin.ninja Git - rust-lightning/commit
Add `list_channels_by_counterparty` method
authorElias Rohrer <ero@tnull.de>
Tue, 7 Mar 2023 10:19:41 +0000 (11:19 +0100)
committerElias Rohrer <ero@tnull.de>
Tue, 7 Mar 2023 18:50:01 +0000 (19:50 +0100)
commit8419d13d4c45697062715c13b5d0657a38fbfb99
tree4ade61725c5209fa5ac55a5decbd756b3c1b4048
parentd355ce1b78164d34a59c93b36c064f96462696a4
Add `list_channels_by_counterparty` method

While we already provide a `list_channels` method, it could result in
quite a large `Vec<ChannelDetails>`. Here, we provide the means to query
our channels by `counterparty_node_id` and DRY up the code.
lightning/src/ln/channelmanager.rs