Skip to content

Require min_final_cltv_expiry in invoices #898

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 4 commits into from
Apr 30, 2021

Conversation

jkczyz
Copy link
Contributor

@jkczyz jkczyz commented Apr 26, 2021

Lightning invoices must be constructed with the min_final_cltv_expiry field set. For backwards compatibility, use a default value if not set.

Fixes #879.

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Needs a rebase to pick up CI fixes.

@jkczyz jkczyz force-pushed the 2021-04-invoice-expiry branch from d76d56e to 58918c7 Compare April 27, 2021 01:48
@codecov
Copy link

codecov bot commented Apr 27, 2021

Codecov Report

Merging #898 (aafa741) into main (cb0b4bf) will increase coverage by 0.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #898      +/-   ##
==========================================
+ Coverage   90.39%   90.45%   +0.06%     
==========================================
  Files          57       57              
  Lines       29500    29515      +15     
==========================================
+ Hits        26666    26699      +33     
+ Misses       2834     2816      -18     
Impacted Files Coverage Δ
lightning-invoice/src/lib.rs 84.88% <100.00%> (+1.55%) ⬆️
lightning/src/ln/functional_tests.rs 97.03% <0.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb0b4bf...aafa741. Read the comment docs.

@TheBlueMatt
Copy link
Collaborator

Needs (trivial) rebase.

@jkczyz jkczyz force-pushed the 2021-04-invoice-expiry branch from 58918c7 to aafa741 Compare April 29, 2021 21:10
@devrandom
Copy link
Member

ACK

@TheBlueMatt TheBlueMatt merged commit 47cb293 into lightningdevkit:main Apr 30, 2021
TheBlueMatt added a commit to TheBlueMatt/rust-lightning that referenced this pull request Apr 30, 2021
TheBlueMatt added a commit that referenced this pull request Apr 30, 2021
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.

invoice: min_final_cltv_expiry should always be present
3 participants