Skip to content

Commit cec78b9

Browse files
committed
add builder method
1 parent e5f0171 commit cec78b9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/builder.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,12 @@ impl NodeBuilder {
274274
self
275275
}
276276

277+
/// Configures the [`Node`] instance to source its external scores from the given URL.
278+
pub fn set_external_scores_source(&mut self, url: String) -> &mut Self {
279+
self.config.external_scores_url = Some(url);
280+
self
281+
}
282+
277283
/// Configures the [`Node`] instance to source its inbound liquidity from the given
278284
/// [LSPS2](https://github.com/BitcoinAndLightningLayerSpecs/lsp/blob/main/LSPS2/README.md)
279285
/// service.

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ impl Node {
311311
}
312312

313313
if let Some(url) = &self.config.external_scores_url {
314+
log_trace!(self.logger, "External scores background syncing from {} enabled", url);
315+
314316
let external_scores_sync_logger = Arc::clone(&self.logger);
315317
let external_scores_scorer = Arc::clone(&self.scorer);
316318
let mut stop_sync = self.stop_sender.subscribe();

0 commit comments

Comments
 (0)