From 9ac9d8e19f1b4768e53770907b9fafbb3cbce895 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Mon, 22 Apr 2024 11:29:42 +0200 Subject: [PATCH] Fix typo in `OutputSweeper` ... as 'ouputs' isn't a thing. --- lightning/src/util/sweep.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- 2.39.5