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

Update relay fees from eclair.conf #1673

Merged
merged 1 commit into from
Jan 20, 2021
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jan 20, 2021

If the eclair.conf changes while we're offline, we want to apply the fee changes to existing channels once they come back online.

@t-bast t-bast requested a review from pm47 January 20, 2021 10:30
@codecov-io
Copy link

codecov-io commented Jan 20, 2021

Codecov Report

Merging #1673 (c6ea5aa) into master (81f15aa) will increase coverage by 0.07%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1673      +/-   ##
==========================================
+ Coverage   85.95%   86.03%   +0.07%     
==========================================
  Files         151      151              
  Lines       11474    11483       +9     
  Branches      495      495              
==========================================
+ Hits         9863     9879      +16     
+ Misses       1611     1604       -7     
Impacted Files Coverage Δ
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 86.10% <100.00%> (+0.19%) ⬆️
...nq/eclair/blockchain/electrum/ElectrumWallet.scala 80.25% <0.00%> (-0.26%) ⬇️
...main/scala/fr/acinq/eclair/io/PeerConnection.scala 82.35% <0.00%> (+0.42%) ⬆️
...cala/fr/acinq/eclair/payment/relay/NodeRelay.scala 95.27% <0.00%> (+1.57%) ⬆️
...q/eclair/blockchain/electrum/ElectrumWatcher.scala 77.77% <0.00%> (+3.17%) ⬆️

Clarify why we don't actively update channel relay fees when the default
values change in eclair.conf. It would override manual changes made via
the API which is bad.
@pm47
Copy link
Member

pm47 commented Jan 20, 2021

This could be a problem for people who fine-tune their relay fees channel per channel, because all the fees are overriden at restart. I believe we should keep the behavior as it is currently (maybe adding a comment to explain why we keep the existing fees), and tell users to use the API if they want to mass-update their relay fees settings.

@t-bast t-bast merged commit 34e901d into master Jan 20, 2021
@t-bast t-bast deleted the update-relay-fee-from-conf branch January 20, 2021 17:52
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