Skip to content

Commit 0396fc5

Browse files
committed
Allow to retrieve the Node's Config
1 parent 84ecc24 commit 0396fc5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bindings/ldk_node.udl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ interface LDKNode {
4343
[Throws=NodeError]
4444
void stop();
4545
NodeStatus status();
46+
Config config();
4647
Event? next_event();
4748
Event wait_next_event();
4849
[Async]

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,11 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
763763
}
764764
}
765765

766+
/// Returns the config with which the [`Node`] was initialized.
767+
pub fn config(&self) -> Config {
768+
self.config.as_ref().clone()
769+
}
770+
766771
/// Returns the next event in the event queue, if currently available.
767772
///
768773
/// Will return `Some(..)` if an event is available and `None` otherwise.

0 commit comments

Comments
 (0)