Skip to content

Commit d1f6b8b

Browse files
committed
cleanup wording
1 parent edb994c commit d1f6b8b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

lightning/src/chain/keysinterface.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,10 @@ pub trait KeysInterface: Send + Sync {
341341
}
342342

343343
#[derive(Clone)]
344-
/// Holds late-bound channel data
345-
/// This data is available after the remote accepts the channel.
344+
/// Holds late-bound channel data.
345+
/// This data is available after the channel is known to be accepted, either
346+
/// when receiving an open_channel for an inbound channel or when
347+
/// receiving accept_channel for an outbound channel.
346348
pub struct AcceptedChannelData {
347349
/// Remote public keys and base points
348350
pub(crate) remote_channel_pubkeys: ChannelPublicKeys,
@@ -424,15 +426,15 @@ impl InMemoryChannelKeys {
424426
}
425427

426428
/// Remote pubkeys
427-
/// Will panic if the remote pubkeys were not set with on_accept
429+
/// Will panic if on_accept wasn't called
428430
pub fn remote_pubkeys(&self) -> &ChannelPublicKeys { &self.accepted_channel_data.as_ref().unwrap().remote_channel_pubkeys }
429431

430432
/// Remote to-self delay, constraining local commitment txs
431-
/// Will panic if the remote pubkeys were not set with on_accept
433+
/// Will panic if on_accept wasn't called
432434
pub fn remote_to_self_delay(&self) -> u16 { self.accepted_channel_data.as_ref().unwrap().remote_to_self_delay }
433435

434436
/// Local to-self delay, constraining remote commitment txs
435-
/// Will panic if the remote pubkeys were not set with on_accept
437+
/// Will panic if on_accept wasn't called
436438
pub fn local_to_self_delay(&self) -> u16 { self.accepted_channel_data.as_ref().unwrap().local_to_self_delay }
437439
}
438440

0 commit comments

Comments
 (0)