@@ -119,7 +119,8 @@ pub(crate) const EXTERNAL_PATHFINDING_SCORES_SYNC_TIMEOUT_SECS: u64 = 5;
119119/// | `probing_liquidity_limit_multiplier` | 3 |
120120/// | `log_level` | Debug |
121121/// | `anchor_channels_config` | Some(..) |
122- /// | `route_parameters` | None |
122+ /// | `route_parameters` | None |
123+ /// | `hrn_config` | None |
123124///
124125/// See [`AnchorChannelsConfig`] and [`RouteParametersConfig`] for more information regarding their
125126/// respective default values.
@@ -184,6 +185,10 @@ pub struct Config {
184185 /// **Note:** If unset, default parameters will be used, and you will be able to override the
185186 /// parameters on a per-payment basis in the corresponding method calls.
186187 pub route_parameters : Option < RouteParametersConfig > ,
188+ /// Configuration options for Human-Readable Names ([BIP 353]).
189+ ///
190+ /// [BIP 353]: https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki
191+ pub hrn_config : Option < HumanReadableNamesConfig > ,
187192}
188193
189194impl Default for Config {
@@ -198,10 +203,28 @@ impl Default for Config {
198203 anchor_channels_config : Some ( AnchorChannelsConfig :: default ( ) ) ,
199204 route_parameters : None ,
200205 node_alias : None ,
206+ hrn_config : None ,
201207 }
202208 }
203209}
204210
211+ /// Configuration options for Human-Readable Names ([BIP 353]).
212+ ///
213+ /// [BIP 353]: https://github.com/bitcoin/bips/blob/master/bip-0353.mediawiki
214+ #[ derive( Debug , Clone ) ]
215+ pub struct HumanReadableNamesConfig {
216+ /// The Default DNS resolvers to be used for resolving Human-Readable Names.
217+ ///
218+ /// If not empty, the values set will be used as DNS resolvers when sending to HRNs.
219+ ///
220+ /// **Note:** If empty, DNS resolvers would be selected from the network graph.
221+ pub default_dns_resolvers : Vec < PublicKey > ,
222+ /// This allows us to use our node as a DNS resolver for 3rd party HRN resolutions.
223+ pub is_hrn_resolver : bool ,
224+ /// The DNS Server which will be used for resolving HRNs.
225+ pub dns_server_address : String ,
226+ }
227+
205228/// Configuration options pertaining to 'Anchor' channels, i.e., channels for which the
206229/// `option_anchors_zero_fee_htlc_tx` channel type is negotiated.
207230///
0 commit comments