Skip to content

Commit 8004dba

Browse files
committed
f Remove/move impl-specific comments
1 parent 2bcde3f commit 8004dba

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lightning/src/sign/mod.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -820,11 +820,6 @@ pub trait OutputSpender {
820820
/// Returns `Err(())` if the output value is greater than the input value minus required fee,
821821
/// if a descriptor was duplicated, or if an output descriptor `script_pubkey`
822822
/// does not match the one we can spend.
823-
///
824-
/// We do not enforce that outputs meet the dust limit or that any output scripts are standard.
825-
///
826-
/// May panic if the [`SpendableOutputDescriptor`]s were not generated by channels which used
827-
/// this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`].
828823
fn spend_spendable_outputs<C: Signing>(
829824
&self, descriptors: &[&SpendableOutputDescriptor], outputs: Vec<TxOut>,
830825
change_destination_script: ScriptBuf, feerate_sat_per_1000_weight: u32,
@@ -2095,6 +2090,8 @@ impl OutputSpender for KeysManager {
20952090
///
20962091
/// See [`OutputSpender::spend_spendable_outputs`] documentation for more information.
20972092
///
2093+
/// We do not enforce that outputs meet the dust limit or that any output scripts are standard.
2094+
///
20982095
/// May panic if the [`SpendableOutputDescriptor`]s were not generated by channels which used
20992096
/// this [`KeysManager`] or one of the [`InMemorySigner`] created by this [`KeysManager`].
21002097
fn spend_spendable_outputs<C: Signing>(
@@ -2258,7 +2255,8 @@ impl NodeSigner for PhantomKeysManager {
22582255
}
22592256

22602257
impl OutputSpender for PhantomKeysManager {
2261-
/// See [`OutputSpender::spend_spendable_outputs`] for documentation on this method.
2258+
/// See [`OutputSpender::spend_spendable_outputs`] and [`KeysManager::spend_spendable_outputs`]
2259+
/// for documentation on this method.
22622260
fn spend_spendable_outputs<C: Signing>(
22632261
&self, descriptors: &[&SpendableOutputDescriptor], outputs: Vec<TxOut>,
22642262
change_destination_script: ScriptBuf, feerate_sat_per_1000_weight: u32,

0 commit comments

Comments
 (0)