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

Add expiry to phantom invoice utility functions #1422

Merged

Conversation

dunxen
Copy link
Contributor

@dunxen dunxen commented Apr 15, 2022

Closes #1411

@dunxen
Copy link
Contributor Author

dunxen commented Apr 15, 2022

Hmm. So I assumed we don't need to pass in a payment secret anymore. If this is wrong then I can fix up.

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2022

Codecov Report

Merging #1422 (8f047ca) into main (03f6550) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1422      +/-   ##
==========================================
+ Coverage   90.84%   90.85%   +0.01%     
==========================================
  Files          74       74              
  Lines       41288    41361      +73     
  Branches    41288    41361      +73     
==========================================
+ Hits        37507    37580      +73     
  Misses       3781     3781              
Impacted Files Coverage Δ
lightning-invoice/src/utils.rs 96.57% <100.00%> (-0.11%) ⬇️
lightning/src/ln/functional_tests.rs 97.04% <0.00%> (-0.10%) ⬇️
lightning-persister/src/util.rs 98.90% <0.00%> (+3.12%) ⬆️
lightning-block-sync/src/init.rs 99.05% <0.00%> (+3.24%) ⬆️

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 03f6550...8f047ca. Read the comment docs.

amt_msat: Option<u64>, description_hash: Sha256, payment_hash: PaymentHash,
payment_secret: PaymentSecret, phantom_route_hints: Vec<PhantomRouteHints>,
keys_manager: K, network: Currency,
amt_msat: Option<u64>, payment_hash: Option<PaymentHash>, invoice_expiry_delta_secs: u32, description_hash: Sha256, phantom_route_hints: Vec<PhantomRouteHints>, keys_manager: K, network: Currency,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Lets break the line at least a bit so its not so long :). Try to break around 100 chars.

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.

Basically lg, is there a reason this is still draft?

@dunxen
Copy link
Contributor Author

dunxen commented Apr 15, 2022

Basically lg, is there a reason this is still draft?

Ah, just wanted to check on something. Thought I had made some mistake in my conceptual understand. Will promote it out of draft now :)

@dunxen dunxen marked this pull request as ready for review April 15, 2022 17:18
Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

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

Looks great! I'm ACK if CI passes

lightning-invoice/src/utils.rs Outdated Show resolved Hide resolved
lightning-invoice/src/utils.rs Outdated Show resolved Hide resolved
lightning-invoice/src/utils.rs Show resolved Hide resolved
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.

Otherwise LGTM.

lightning-invoice/src/utils.rs Outdated Show resolved Hide resolved
@valentinewallace valentinewallace merged commit b4c645a into lightningdevkit:main Apr 17, 2022
@dunxen dunxen deleted the 2022-04-invoice-expiry branch April 17, 2022 22:05
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.

Include expiry in invoices
4 participants