Skip to content

Commit 2b9b526

Browse files
committed
Enable setting Node as HRN Resolver for 3rd parties in Config
1 parent a6dab4e commit 2b9b526

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

bindings/ldk_node.udl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dictionary Config {
1313
u64 probing_liquidity_limit_multiplier;
1414
AnchorChannelsConfig? anchor_channels_config;
1515
RouteParametersConfig? route_parameters;
16+
boolean is_hrn_resolver;
1617
};
1718

1819
dictionary AnchorChannelsConfig {

src/config.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ pub const WALLET_KEYS_SEED_LEN: usize = 64;
113113
/// | `probing_liquidity_limit_multiplier` | 3 |
114114
/// | `log_level` | Debug |
115115
/// | `anchor_channels_config` | Some(..) |
116-
/// | `route_parameters` | None |
116+
/// | `route_parameters` | None |
117+
/// | `is_hrn_resolver` | false |
117118
///
118119
/// See [`AnchorChannelsConfig`] and [`RouteParametersConfig`] for more information regarding their
119120
/// respective default values.
@@ -178,6 +179,8 @@ pub struct Config {
178179
/// **Note:** If unset, default parameters will be used, and you will be able to override the
179180
/// parameters on a per-payment basis in the corresponding method calls.
180181
pub route_parameters: Option<RouteParametersConfig>,
182+
/// This allows us to use our node as a DNS resolver for 3rd party HRN resolutions.
183+
pub is_hrn_resolver: bool,
181184
}
182185

183186
impl Default for Config {
@@ -192,6 +195,7 @@ impl Default for Config {
192195
anchor_channels_config: Some(AnchorChannelsConfig::default()),
193196
route_parameters: None,
194197
node_alias: None,
198+
is_hrn_resolver: false,
195199
}
196200
}
197201
}

0 commit comments

Comments
 (0)