We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
as_directed_to
1 parent b734735 commit bc305c9Copy full SHA for bc305c9
lightning/src/routing/gossip.rs
@@ -829,7 +829,7 @@ pub struct ChannelInfo {
829
impl ChannelInfo {
830
/// Returns a [`DirectedChannelInfo`] for the channel directed to the given `target` from a
831
/// returned `source`, or `None` if `target` is not one of the channel's counterparties.
832
- pub fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
+ pub(crate) fn as_directed_to(&self, target: &NodeId) -> Option<(DirectedChannelInfo, &NodeId)> {
833
let (direction, source) = {
834
if target == &self.node_one {
835
(self.two_to_one.as_ref(), &self.node_two)
0 commit comments