From: Elias Rohrer Date: Mon, 22 Apr 2024 09:29:42 +0000 (+0200) Subject: Fix typo in `OutputSweeper` X-Git-Tag: v0.0.123-rc1~9^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=9ac9d8e19f1b4768e53770907b9fafbb3cbce895;p=rust-lightning Fix typo in `OutputSweeper` ... as 'ouputs' isn't a thing. --- diff --git a/lightning/src/util/sweep.rs b/lightning/src/util/sweep.rs index 59d3a088c..846ab96f2 100644 --- a/lightning/src/util/sweep.rs +++ b/lightning/src/util/sweep.rs @@ -390,7 +390,7 @@ where /// Usually, this should be called based on the values emitted by the /// [`Event::SpendableOutputs`]. /// - /// The given `exclude_static_ouputs` flag controls whether the sweeper will filter out + /// The given `exclude_static_outputs` flag controls whether the sweeper will filter out /// [`SpendableOutputDescriptor::StaticOutput`]s, which may be handled directly by the on-chain /// wallet implementation. /// @@ -400,12 +400,12 @@ where /// [`Event::SpendableOutputs`]: crate::events::Event::SpendableOutputs pub fn track_spendable_outputs( &self, output_descriptors: Vec, channel_id: Option, - exclude_static_ouputs: bool, delay_until_height: Option, + exclude_static_outputs: bool, delay_until_height: Option, ) { let mut relevant_descriptors = output_descriptors .into_iter() .filter(|desc| { - !(exclude_static_ouputs + !(exclude_static_outputs && matches!(desc, SpendableOutputDescriptor::StaticOutput { .. })) }) .peekable();