8000 Reject 0-value trampoline payments by t-bast · Pull Request #1851 · ACINQ/eclair · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Reject 0-value trampoline payments #1851

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

Merged
merged 1 commit into from
Jun 28, 2021
Merged

Reject 0-value trampoline payments #1851

merged 1 commit into from
Jun 28, 2021

Conversation

t-bast
Copy link
Member
@t-bast t-bast commented Jun 28, 2021

It doesn't make any sense to forward empty payments.
This is also checked when adding the htlcs in the outgoing channel, but we should fail early in the node-relay actor.

It doesn't make any sense to forward empty payments.
This is also checked when adding the htlcs in the outgoing channel, but
we should fail early here.
@t-bast t-bast requested a review from pm47 June 28, 2021 14:31
@codecov-commenter
Copy link

Codecov Report

Merging #1851 (c8cb963) into master (45204e2) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1851      +/-   ##
==========================================
- Coverage   88.96%   88.94%   -0.03%     
==========================================
  Files         150      150              
  Lines       11237    11239       +2     
  Branches      429      447      +18     
==========================================
- Hits         9997     9996       -1     
- Misses       1240     1243       +3     
Impacted Files Coverage Δ
...cala/fr/acinq/eclair/payment/relay/NodeRelay.scala 96.03% <100.00%> (+0.06%) ⬆️
...main/scala/fr/acinq/eclair/router/Validation.scala 90.76% <0.00%> (-1.54%) ⬇️
...c/main/scala/fr/acinq/eclair/channel/Channel.scala 86.19% <0.00%> (-0.09%) ⬇️
...clair/channel/publish/ReplaceableTxPublisher.scala 86.98% <0.00%> (+1.18%) ⬆️

@t-bast t-bast merged commit 85ed433 into master Jun 28, 2021
@t-bast t-bast deleted the node-relay-0-msat branch June 28, 2021 14:50
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
0