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

Reject unreasonable remote dust limit #1694

Merged
merged 2 commits into from
Feb 17, 2021
Merged

Reject unreasonable remote dust limit #1694

merged 2 commits into from
Feb 17, 2021

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Feb 17, 2021

It makes no sense to use a dust limit that's much higher than what bitcoin mandates, so we should not allow our peer to use invalid values.

It makes no sense to use a dust limit that's much higher than what bitcoin
mandates, so we should not allow our peer to use invalid values.
@t-bast t-bast requested a review from pm47 February 17, 2021 13:50
@codecov-io
Copy link

Codecov Report

Merging #1694 (6d1bac1) into master (2a359c6) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1694      +/-   ##
==========================================
- Coverage   86.04%   86.03%   -0.02%     
==========================================
  Files         151      151              
  Lines       11491    11494       +3     
  Branches      497      499       +2     
==========================================
+ Hits         9888     9889       +1     
- Misses       1603     1605       +2     
Impacted Files Coverage Δ
...re/src/main/scala/fr/acinq/eclair/NodeParams.scala 92.09% <100.00%> (+0.04%) ⬆️
...c/main/scala/fr/acinq/eclair/channel/Helpers.scala 96.25% <100.00%> (+0.01%) ⬆️
...main/scala/fr/acinq/eclair/io/PeerConnection.scala 82.97% <0.00%> (-0.86%) ⬇️
...nq/eclair/blockchain/electrum/ElectrumClient.scala 73.52% <0.00%> (-0.37%) ⬇️
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 86.50% <0.00%> (+0.08%) ⬆️

@t-bast t-bast merged commit 3a94a80 into master Feb 17, 2021
@t-bast t-bast deleted the max-remote-dust-limit branch February 17, 2021 14:17
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