Skip to content

Conversation

TheBlueMatt
Copy link
Collaborator

Previously we'd simply overwritten "the" first hop path to each
counterparty when routing, however this results in us ignoring all
channels except the last one in the ChannelDetails list per
counterparty.

Previously we'd simply overwritten "the" first hop path to each
counterparty when routing, however this results in us ignoring all
channels except the last one in the `ChannelDetails` list per
counterparty.
@TheBlueMatt TheBlueMatt added this to the 0.0.102 milestone Sep 29, 2021
@TheBlueMatt
Copy link
Collaborator Author

Note that this was a user-reported bug, so tagging it 0.0.102 to keep the "user reported bugs get fixed w/i one release" deadline.

@codecov
Copy link

codecov bot commented Sep 29, 2021

Codecov Report

Merging #1100 (cc70446) into main (ad819ea) will decrease coverage by 0.05%.
The diff coverage is 96.49%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1100      +/-   ##
==========================================
- Coverage   90.64%   90.58%   -0.06%     
==========================================
  Files          65       65              
  Lines       34226    34549     +323     
==========================================
+ Hits        31024    31297     +273     
- Misses       3202     3252      +50     
Impacted Files Coverage Δ
lightning/src/routing/router.rs 96.03% <96.49%> (+0.03%) ⬆️
lightning-block-sync/src/lib.rs 93.49% <0.00%> (-1.69%) ⬇️
lightning-net-tokio/src/lib.rs 76.69% <0.00%> (-0.59%) ⬇️
lightning-block-sync/src/http.rs 93.30% <0.00%> (-0.22%) ⬇️
lightning/src/ln/functional_tests.rs 97.47% <0.00%> (+0.04%) ⬆️
lightning/src/util/events.rs 32.07% <0.00%> (+0.07%) ⬆️
lightning/src/ln/channelmanager.rs 85.50% <0.00%> (+0.63%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ad819ea...cc70446. Read the comment docs.

Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One q but seems legit and test fails as expected on main

Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fan-tastic

Copy link
Contributor

@arik-so arik-so left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Only change I'd wish for is a more descriptive macro name than add_entry.

@TheBlueMatt
Copy link
Collaborator Author

Only change I'd wish for is a more descriptive macro name than add_entry.

I'll let someone else tackle that in a followup - get_route needing some additional clarity isn't a new issue, I think.

@TheBlueMatt TheBlueMatt merged commit 17d75a8 into lightningdevkit:main Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants