Skip to content

Commit 9a65188

Browse files
committed
Allow to retrieve the Node's Config
1 parent 429bc63 commit 9a65188

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
@@ -45,6 +45,7 @@ interface Node {
4545
[Throws=NodeError]
4646
void stop();
4747
NodeStatus status();
48+
Config config();
4849
Event? next_event();
4950
Event wait_next_event();
5051
[Async]

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,11 @@ impl Node {
760760
}
761761
}
762762

763+
/// Returns the config with which the [`Node`] was initialized.
764+
pub fn config(&self) -> Config {
765+
self.config.as_ref().clone()
766+
}
767+
763768
/// Returns the next event in the event queue, if currently available.
764769
///
765770
/// Will return `Some(..)` if an event is available and `None` otherwise.

0 commit comments

Comments
 (0)