Skip to content

Commit a745439

Browse files
committed
Doc and comment fixes from lightningdevkit#4167
This fixes incorrect docs and comments introduced by e95ebf8 and 491b694
1 parent e457a48 commit a745439

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lightning/src/ln/chan_utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,11 +1018,11 @@ pub struct ChannelTransactionParameters {
10181018
/// If a channel was funded with transaction A, and later spliced with transaction B, this field
10191019
/// tracks the txid of transaction A.
10201020
///
1021-
/// See [`compute_funding_key_tweak`] and [`ChannelSigner::pubkeys`] for more context on how
1022-
/// this may be used.
1021+
/// See [`compute_funding_key_tweak`] and [`ChannelSigner::new_funding_pubkey`] for more context
1022+
/// on how this may be used.
10231023
///
10241024
/// [`compute_funding_key_tweak`]: crate::sign::compute_funding_key_tweak
1025-
/// [`ChannelSigner::pubkeys`]: crate::sign::ChannelSigner::pubkeys
1025+
/// [`ChannelSigner::new_funding_pubkey`]: crate::sign::ChannelSigner::new_funding_pubkey
10261026
pub splice_parent_funding_txid: Option<Txid>,
10271027
/// This channel's type, as negotiated during channel open. For old objects where this field
10281028
/// wasn't serialized, it will default to static_remote_key at deserialization.

lightning/src/util/test_channel_signer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ impl Clone for TestChannelSigner {
8383
fn clone(&self) -> Self {
8484
// Generally, a signer should only ever be cloned when a ChannelMonitor is cloned (which
8585
// doesn't fetch the pubkeys at all). This isn't really a critical test, but if it
86-
// it ever does fail we should make sure the clone is hapening in a sensible place.
86+
// it ever does fail we should make sure the clone is happening in a sensible place.
8787
assert!(!self.have_fetched_pubkeys.load(Ordering::Acquire));
8888
Self {
8989
inner: self.inner.clone(),
9090
state: Arc::clone(&self.state),
9191
disable_revocation_policy_check: self.disable_revocation_policy_check,
9292
disable_all_state_policy_checks: self.disable_all_state_policy_checks,
93-
// In some tests we clone a `ChannelMonitor` multiple times, so have to initialize with
94-
// `!have_fetched_pubkeys` to ensure the above assertion passes.
93+
// In some tests we clone a `ChannelMonitor` multiple times, so we have to initialize
94+
// with `!have_fetched_pubkeys` to ensure the above assertion passes.
9595
have_fetched_pubkeys: AtomicBool::new(false),
9696
}
9797
}

0 commit comments

Comments
 (0)