-
Notifications
You must be signed in to change notification settings - Fork 366
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
Functional tests for BOLT 12 Offers payment flow #2697
Functional tests for BOLT 12 Offers payment flow #2697
Commits on Jan 16, 2024
-
Add peel_onion_message method to OnionMessenger
When testing OnionMessenger in functional tests, it would be useful to examine the contents of an OnionMessage response. Expose the standalone peel_onion_message on OnionMessenger to facilitate this.
Configuration menu - View commit details
-
Copy full SHA for ec8c6fb - Browse repository at this point
Copy the full SHA ec8c6fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 911ed6d - Browse repository at this point
Copy the full SHA 911ed6dView commit details -
DRY up EntropySource implementation
The ChaCha20-based EntropySource implementation is duplicated within the sign module. Refactor those into a RandomBytes implementation so that it may be reused both there. Also useful as a standalone EntropySource implementation for tests where an independent EntropySource is needed to ensure that backwards-compatibility testing is not broken.
Configuration menu - View commit details
-
Copy full SHA for 8deac89 - Browse repository at this point
Copy the full SHA 8deac89View commit details -
Support OnionMessenger in functional_test_utils
OnionMessenger is needed to write functional tests for ChannelManager's OffersMessageHandler implementation. Also adds a TestMessageRouter, which simply wraps DefaultMessageRouter for now.
Configuration menu - View commit details
-
Copy full SHA for 3b6d039 - Browse repository at this point
Copy the full SHA 3b6d039View commit details -
Have TestRouter wrap DefaultRouter
TestRouter checks route and scoring expectations before delegating to the standalone find_route function. Refactor it to wrap DefaultRouter and delegate to it instead. This allows TestRouter to implement create_blinded_payment_paths by delegating to DefaultRouter.
Configuration menu - View commit details
-
Copy full SHA for b578363 - Browse repository at this point
Copy the full SHA b578363View commit details -
Remove "no-std" feature checks
An upcoming rust-bitcoin release will remove the "no-std" feature. Replace "no-std" in feature checks with "std", negating as needed. Using a single feature flag makes the checks more consistent across modules.
Configuration menu - View commit details
-
Copy full SHA for 30c0702 - Browse repository at this point
Copy the full SHA 30c0702View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1c3004 - Browse repository at this point
Copy the full SHA a1c3004View commit details -
Configuration menu - View commit details
-
Copy full SHA for aba7748 - Browse repository at this point
Copy the full SHA aba7748View commit details -
Functional tests for BOLT 12 Offers payment flow
ChannelManager provides utilities to create offers and refunds along with utilities to initiate and request payment for them, respectively. It also manages the payment flow via implementing OffersMessageHandler. Test that functionality, including the resulting event generation.
Configuration menu - View commit details
-
Copy full SHA for 1059ac3 - Browse repository at this point
Copy the full SHA 1059ac3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c67e3e - Browse repository at this point
Copy the full SHA 6c67e3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 533c3cc - Browse repository at this point
Copy the full SHA 533c3ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7573150 - Browse repository at this point
Copy the full SHA 7573150View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a7a90a - Browse repository at this point
Copy the full SHA 0a7a90aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e40387f - Browse repository at this point
Copy the full SHA e40387fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c51aa1 - Browse repository at this point
Copy the full SHA 1c51aa1View commit details -
Configuration menu - View commit details
-
Copy full SHA for aef46d8 - Browse repository at this point
Copy the full SHA aef46d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ffc24c3 - Browse repository at this point
Copy the full SHA ffc24c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5aeb6c5 - Browse repository at this point
Copy the full SHA 5aeb6c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4532fb5 - Browse repository at this point
Copy the full SHA 4532fb5View commit details