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

fix: re-register gateway when routing fees are updated #4020

Merged

Conversation

m1sterc001guy
Copy link
Contributor

@m1sterc001guy m1sterc001guy commented Jan 8, 2024

Fixes: #4013

This change updates the FederationConfig for each federation in the gateway and also re-registers the lightning gateway when the routing fees are updated.

This PR also gets us most of the way to per-federation routing fees: #3961

@m1sterc001guy m1sterc001guy requested a review from a team as a code owner January 8, 2024 22:43
Copy link

codecov bot commented Jan 8, 2024

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (a309def) 57.64% compared to head (1db3472) 57.68%.

Files Patch % Lines
gateway/ln-gateway/src/lib.rs 81.35% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4020      +/-   ##
==========================================
+ Coverage   57.64%   57.68%   +0.03%     
==========================================
  Files         193      193              
  Lines       42894    42935      +41     
==========================================
+ Hits        24728    24768      +40     
- Misses      18166    18167       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Kodylow Kodylow 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, ran locally and test passes.

Copy link
Contributor

@okjodom okjodom left a comment

Choose a reason for hiding this comment

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

tACK

@okjodom okjodom requested a review from a team January 10, 2024 18:40
@m1sterc001guy m1sterc001guy added this pull request to the merge queue Jan 11, 2024
Merged via the queue into fedimint:master with commit d606aaf Jan 11, 2024
20 checks passed
@m1sterc001guy m1sterc001guy deleted the reregister_routing_fees branch January 11, 2024 00:25
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.

Re-register gateway after updating the configuration
3 participants