Skip to content

Commit 7973b8c

Browse files
committed
Enable setting Node as HRN Resolver for 3rd parties in Config
1 parent da52af8 commit 7973b8c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
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
SendingParameters? sending_parameters;
16+
boolean is_hrn_resolver;
1617
};
1718

1819
dictionary AnchorChannelsConfig {

src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ pub const WALLET_KEYS_SEED_LEN: usize = 64;
115115
/// | `log_level` | Debug |
116116
/// | `anchor_channels_config` | Some(..) |
117117
/// | `sending_parameters` | None |
118+
/// | `is_hrn_resolver` | false |
118119
///
119120
/// See [`AnchorChannelsConfig`] and [`SendingParameters`] for more information regarding their
120121
/// respective default values.
@@ -179,6 +180,8 @@ pub struct Config {
179180
/// **Note:** If unset, default parameters will be used, and you will be able to override the
180181
/// parameters on a per-payment basis in the corresponding method calls.
181182
pub sending_parameters: Option<SendingParameters>,
183+
/// This allows us to use our node as a DNS resolver for 3rd party HRN resolutions.
184+
pub is_hrn_resolver: bool,
182185
}
183186

184187
impl Default for Config {
@@ -193,6 +196,7 @@ impl Default for Config {
193196
anchor_channels_config: Some(AnchorChannelsConfig::default()),
194197
sending_parameters: None,
195198
node_alias: None,
199+
is_hrn_resolver: false,
196200
}
197201
}
198202
}

0 commit comments

Comments
 (0)