-
Notifications
You must be signed in to change notification settings - Fork 113
Add support for resolving BIP 353 Human-Readable Names #630
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 1 commit
dd725bc
02ed479
7e6e7e7
6d20a9e
2c809b1
8696269
9b7584b
3e30347
bd668f6
ec435ce
4c1a03a
49f4013
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 |
|---|---|---|
|
|
@@ -194,7 +194,21 @@ impl Bolt12Payment { | |
| return Err(Error::NotRunning); | ||
| } | ||
|
|
||
| let offer = maybe_deref(offer); | ||
| let mut current_offer = offer.clone(); | ||
|
|
||
| if let Some(hrn_ref) = hrn.as_ref() { | ||
| current_offer = match crate::dnssec_testing_utils::get_testing_offer_override(Some( | ||
| hrn_ref.clone(), | ||
| )) { | ||
| Some(offer) => { | ||
| log_info!(self.logger, "Using test-specific Offer override."); | ||
| offer | ||
| }, | ||
| _ => offer.clone(), | ||
| }; | ||
| } | ||
|
|
||
| let offer = maybe_deref(¤t_offer); | ||
|
Comment on lines
+197
to
+211
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. This could be simplified a bit. The We could do something like:
Contributor
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. Thanks! I'll replace that with --> |
||
|
|
||
| let mut random_bytes = [0u8; 32]; | ||
| rand::thread_rng().fill_bytes(&mut random_bytes); | ||
|
|
||
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.
Let's introduce a new
cfg(hrn_tests)gate and move all the testing-related changes behind it, to make sure we don't ever run it in production code.