Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use long id instead of short id in ChannelRelay #2221

Merged
merged 3 commits into from
May 19, 2022

Conversation

pm47
Copy link
Member

@pm47 pm47 commented Mar 31, 2022

This is a preparation for lightning/bolts#910.

The relaying logic is now based on the channelId instead of
shortChannelId.

We used to consider shortChannelId as a unique identifier for the
channel, but it's not true anymore: there will be multiple aliases per
channel.

@pm47 pm47 requested a review from t-bast March 31, 2022 17:20
@pm47 pm47 marked this pull request as draft March 31, 2022 17:25
@pm47 pm47 removed the request for review from t-bast March 31, 2022 17:25
@pm47 pm47 force-pushed the rework-channelrelayer-maps branch from 86ab16f to a6381d1 Compare May 13, 2022 17:02
@pm47 pm47 marked this pull request as ready for review May 17, 2022 16:17
@pm47 pm47 requested a review from t-bast May 17, 2022 16:18
Copy link
Member

@t-bast t-bast left a comment

Choose a reason for hiding this comment

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

Looks mostly good to me 👍

@pm47 pm47 requested a review from t-bast May 18, 2022 15:53
@pm47 pm47 requested a review from t-bast May 19, 2022 08:37
@codecov-commenter
Copy link

Codecov Report

Merging #2221 (848062f) into master (95213bc) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2221      +/-   ##
==========================================
- Coverage   84.35%   84.30%   -0.05%     
==========================================
  Files         194      194              
  Lines       14393    14411      +18     
  Branches      612      568      -44     
==========================================
+ Hits        12141    12149       +8     
- Misses       2252     2262      +10     
Impacted Files Coverage Δ
...a/fr/acinq/eclair/payment/relay/ChannelRelay.scala 98.03% <100.00%> (-0.02%) ⬇️
...fr/acinq/eclair/payment/relay/ChannelRelayer.scala 100.00% <100.00%> (ø)
.../scala/fr/acinq/eclair/payment/relay/Relayer.scala 90.90% <100.00%> (+0.21%) ⬆️
...cala/fr/acinq/eclair/payment/relay/NodeRelay.scala 95.93% <0.00%> (-1.63%) ⬇️
...main/scala/fr/acinq/eclair/router/Validation.scala 90.87% <0.00%> (-1.58%) ⬇️
...clair/channel/publish/ReplaceableTxPublisher.scala 72.84% <0.00%> (-1.33%) ⬇️
...in/scala/fr/acinq/eclair/channel/fsm/Channel.scala 88.27% <0.00%> (-0.12%) ⬇️
...main/scala/fr/acinq/eclair/io/PeerConnection.scala 85.98% <0.00%> (ø)
...cinq/eclair/channel/publish/MempoolTxMonitor.scala 88.88% <0.00%> (ø)
...ire/internal/channel/version0/ChannelCodecs0.scala 96.15% <0.00%> (ø)
... and 3 more

@pm47 pm47 merged commit 6fa02a0 into master May 19, 2022
@pm47 pm47 deleted the rework-channelrelayer-maps branch May 19, 2022 08:55
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