We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ChannelMonitor::get_counterparty_node_id
1 parent 36bffb5 commit 75b1112Copy full SHA for 75b1112
lightning/src/chain/channelmonitor.rs
@@ -1214,7 +1214,11 @@ impl<Signer: Sign> ChannelMonitor<Signer> {
1214
self.inner.lock().unwrap().get_cur_holder_commitment_number()
1215
}
1216
1217
- pub(crate) fn get_counterparty_node_id(&self) -> Option<PublicKey> {
+ /// Gets the `node_id` of the counterparty for this channel.
1218
+ ///
1219
+ /// Will be `None` for channels constructed on LDK versions prior to 0.0.110 and always `Some`
1220
+ /// otherwise.
1221
+ pub fn get_counterparty_node_id(&self) -> Option<PublicKey> {
1222
self.inner.lock().unwrap().counterparty_node_id
1223
1224
0 commit comments