Skip to content

Commit 5d270e3

Browse files
Add getter for node secret in ChannelManager
1 parent c78e20d commit 5d270e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2504,6 +2504,11 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
25042504
self.our_network_pubkey.clone()
25052505
}
25062506

2507+
/// Gets the node secret held by this ChannelManager
2508+
pub fn get_our_node_secret(&self) -> &SecretKey {
2509+
&self.our_network_key
2510+
}
2511+
25072512
/// Restores a single, given channel to normal operation after a
25082513
/// ChannelMonitorUpdateErr::TemporaryFailure was returned from a channel monitor update
25092514
/// operation.

0 commit comments

Comments
 (0)