Skip to content

Commit

Permalink
Merge pull request lightningdevkit#3104 from TheBlueMatt/2024-06-rout…
Browse files Browse the repository at this point in the history
…ing-counters
  • Loading branch information
valentinewallace authored Jul 10, 2024
2 parents 6035c83 + 4f5e17b commit 78c0eaa
Show file tree
Hide file tree
Showing 4 changed files with 470 additions and 166 deletions.
2 changes: 1 addition & 1 deletion lightning/src/blinded_path/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ impl_writeable!(BlindedHop, {

impl Direction {
/// Returns the [`NodeId`] from the inputs corresponding to the direction.
pub fn select_node_id<'a>(&self, node_a: &'a NodeId, node_b: &'a NodeId) -> &'a NodeId {
pub fn select_node_id(&self, node_a: NodeId, node_b: NodeId) -> NodeId {
match self {
Direction::NodeOne => core::cmp::min(node_a, node_b),
Direction::NodeTwo => core::cmp::max(node_a, node_b),
Expand Down
Loading

0 comments on commit 78c0eaa

Please sign in to comment.