-
Notifications
You must be signed in to change notification settings - Fork 427
Change Bolt11Invoice payment_hash function return type #4293
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
base: main
Are you sure you want to change the base?
Changes from all commits
1104754
f5fa49d
abd8d04
51fc781
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1202,7 +1202,7 @@ fn client_trusts_lsp_end_to_end_test() { | |
| intercept_scid, | ||
| cltv_expiry_delta, | ||
| payment_size_msat, | ||
| "asdf", | ||
| "e2e", | ||
| 3600, | ||
| ) | ||
| .unwrap(); | ||
|
|
@@ -1211,7 +1211,7 @@ fn client_trusts_lsp_end_to_end_test() { | |
| .node | ||
| .pay_for_bolt11_invoice( | ||
| &invoice, | ||
| PaymentId(invoice.payment_hash().to_byte_array()), | ||
| PaymentId(invoice.payment_hash().0), | ||
| None, | ||
| Default::default(), | ||
| Retry::Attempts(3), | ||
|
|
@@ -1684,7 +1684,7 @@ fn late_payment_forwarded_and_safe_after_force_close_does_not_broadcast() { | |
| .node | ||
| .pay_for_bolt11_invoice( | ||
| &invoice, | ||
| PaymentId(invoice.payment_hash().to_byte_array()), | ||
| PaymentId(invoice.payment_hash().0), | ||
| None, | ||
| Default::default(), | ||
| Retry::Attempts(3), | ||
|
|
@@ -1714,7 +1714,7 @@ fn late_payment_forwarded_and_safe_after_force_close_does_not_broadcast() { | |
| *requested_next_hop_scid, | ||
| *intercept_id, | ||
| *expected_outbound_amount_msat, | ||
| PaymentHash(invoice.payment_hash().to_byte_array()), | ||
| PaymentHash(invoice.payment_hash().0), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we not just passing the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you're right. i misinterpreted that. |
||
| ) | ||
| .unwrap(); | ||
| }, | ||
|
|
@@ -1875,7 +1875,7 @@ fn htlc_timeout_before_client_claim_results_in_handling_failed() { | |
| .node | ||
| .pay_for_bolt11_invoice( | ||
| &invoice, | ||
| PaymentId(invoice.payment_hash().to_byte_array()), | ||
| PaymentId(invoice.payment_hash().0), | ||
| None, | ||
| Default::default(), | ||
| Retry::Attempts(3), | ||
|
|
@@ -1905,7 +1905,7 @@ fn htlc_timeout_before_client_claim_results_in_handling_failed() { | |
| *requested_next_hop_scid, | ||
| *intercept_id, | ||
| *expected_outbound_amount_msat, | ||
| PaymentHash(invoice.payment_hash().to_byte_array()), | ||
| PaymentHash(invoice.payment_hash().0), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here and in other several places |
||
| ) | ||
| .unwrap(); | ||
| }, | ||
|
|
@@ -1984,7 +1984,7 @@ fn htlc_timeout_before_client_claim_results_in_handling_failed() { | |
| match &client_events[0] { | ||
| Event::HTLCHandlingFailed { failure_type, .. } => match failure_type { | ||
| lightning::events::HTLCHandlingFailureType::Receive { payment_hash } => { | ||
| assert_eq!(*payment_hash, PaymentHash(invoice.payment_hash().to_byte_array())); | ||
| assert_eq!(*payment_hash, PaymentHash(invoice.payment_hash().0)); | ||
| }, | ||
| _ => panic!("Unexpected failure_type: {:?}", failure_type), | ||
| }, | ||
|
|
@@ -2212,7 +2212,7 @@ fn client_trusts_lsp_partial_fee_does_not_trigger_broadcast() { | |
| .node | ||
| .pay_for_bolt11_invoice( | ||
| &invoice, | ||
| PaymentId(invoice.payment_hash().to_byte_array()), | ||
| PaymentId(invoice.payment_hash().0), | ||
| None, | ||
| Default::default(), | ||
| Retry::Attempts(3), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unrelated to the PR's stated purpose. Why we need this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i changed it to make tests pass momentarily but forgot to revert. will update it