Skip to content

Allow disabling no-htlc commitment fee-bump#2246

Merged
t-bast merged 1 commit into
masterfrom
anchor-disable-commit-bump
Jul 1, 2022
Merged

Allow disabling no-htlc commitment fee-bump#2246
t-bast merged 1 commit into
masterfrom
anchor-disable-commit-bump

Conversation

@t-bast

@t-bast t-bast commented Apr 26, 2022

Copy link
Copy Markdown
Member

When a channel force-close without any pending htlcs, funds are not at risk. We want to eventually get our main output back, but if we are not in a rush we can save on fees by never spending the anchors.

This is disabled by default as there is a potential risk: if the commit tx doesn't confirm and the feerate rises, the commit tx may eventually be below the network's min-relay-fee and won't confirm (at least until package relay is available).

@t-bast t-bast requested a review from pm47 April 26, 2022 16:01
@codecov-commenter

codecov-commenter commented Apr 26, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2246 (f7f67fa) into master (6b2e415) will decrease coverage by 0.04%.
The diff coverage is 95.45%.

@@            Coverage Diff             @@
##           master    #2246      +/-   ##
==========================================
- Coverage   84.73%   84.68%   -0.05%     
==========================================
  Files         194      194              
  Lines       14628    14640      +12     
  Branches      615      631      +16     
==========================================
+ Hits        12395    12398       +3     
- Misses       2233     2242       +9     
Impacted Files Coverage Δ
...re/src/main/scala/fr/acinq/eclair/NodeParams.scala 92.91% <ø> (+0.05%) ⬆️
.../fr/acinq/eclair/blockchain/fee/FeeEstimator.scala 100.00% <ø> (ø)
...c/main/scala/fr/acinq/eclair/channel/Helpers.scala 94.71% <94.44%> (-0.14%) ⬇️
...la/fr/acinq/eclair/channel/fsm/ErrorHandlers.scala 84.35% <100.00%> (ø)
...main/scala/fr/acinq/eclair/router/Validation.scala 93.35% <0.00%> (-1.33%) ⬇️
...clair/channel/publish/ReplaceableTxPublisher.scala 74.19% <0.00%> (-1.30%) ⬇️
...main/scala/fr/acinq/eclair/io/PeerConnection.scala 85.97% <0.00%> (-0.74%) ⬇️
...r/acinq/eclair/payment/send/PaymentInitiator.scala 89.84% <0.00%> (-0.64%) ⬇️
...cala/fr/acinq/eclair/router/RouteCalculation.scala 94.48% <0.00%> (-0.52%) ⬇️
...in/scala/fr/acinq/eclair/channel/fsm/Channel.scala 87.66% <0.00%> (-0.43%) ⬇️
... and 20 more

Comment thread eclair-core/src/main/resources/reference.conf Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/NodeParams.scala Outdated
@t-bast t-bast force-pushed the anchor-disable-commit-bump branch from b74568b to e2ddd11 Compare May 3, 2022 12:56
@t-bast t-bast force-pushed the anchor-disable-commit-bump branch from e2ddd11 to ed69351 Compare June 20, 2022 08:09
Comment thread eclair-core/src/main/resources/reference.conf Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala Outdated
When a channel force-close without any pending htlcs, funds are not at
risk. We want to eventually get our main output back, but if we are not
in a rush we can save on fees by never spending the anchors.

This is disabled by default as there is a potential risk: if the commit
tx doesn't confirm and the feerate rises, the commit tx may eventually be
below the network's min-relay-fee and won't confirm (at least until package
relay is available).
@t-bast t-bast force-pushed the anchor-disable-commit-bump branch from f7f67fa to 480b9da Compare July 1, 2022 13:43
@t-bast t-bast merged commit 3b97e44 into master Jul 1, 2022
@t-bast t-bast deleted the anchor-disable-commit-bump branch July 1, 2022 14:04
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