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

Funder reserve for future fee increase #1319

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Feb 11, 2020

See lightning/bolts#728 and lightning/bolts#740.

Add an additional reserve on the funder to prevent emptying and then being stuck with an unusable channel.

As fundee we don't verify funders comply with that change.
We may enforce it in the future when we're confident the network as a whole enforces that.

Note that c-lightning has already implemented the same logic. We can merge this regardless of spec inclusion as a safety measure for our nodes (and I think we should). The spec may bikeshed some details (like the factor) which we can update later.

@pm47 this is now ready for review.

See lightning/bolts#728

Add an additional reserve on the funder to prevent emptying and then
being stuck with an unusable channel.

As fundee we don't verify funders comply with that change.
We may enforce it in the future when we're confident the network as a
whole enforces that.
@t-bast t-bast force-pushed the remote-cannot-afford-increased-fee branch from efee031 to 7d7dffb Compare March 3, 2020 08:58
@codecov-io
Copy link

Codecov Report

Merging #1319 into master will increase coverage by 0.07%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master   #1319      +/-   ##
=========================================
+ Coverage   77.72%   77.8%   +0.07%     
=========================================
  Files         144     144              
  Lines       10164   10167       +3     
  Branches      404     414      +10     
=========================================
+ Hits         7900    7910      +10     
+ Misses       2264    2257       -7
Impacted Files Coverage Δ
...in/scala/fr/acinq/eclair/channel/Commitments.scala 90.68% <100%> (+0.09%) ⬆️
...clair/blockchain/electrum/ElectrumClientPool.scala 78.49% <0%> (ø) ⬆️
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 84.94% <0%> (+0.45%) ⬆️
...q/eclair/blockchain/electrum/ElectrumWatcher.scala 55.2% <0%> (+0.8%) ⬆️
...-core/src/main/scala/fr/acinq/eclair/package.scala 78.84% <0%> (+1.92%) ⬆️

@t-bast t-bast merged commit 26a54b5 into master Mar 11, 2020
@t-bast t-bast deleted the remote-cannot-afford-increased-fee branch March 11, 2020 14:12
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