Merge pull request #3009 from tnull/2024-04-fix-sweeper-typo
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Mon, 22 Apr 2024 11:36:41 +0000 (04:36 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Apr 2024 11:36:41 +0000 (04:36 -0700)
Fix typo in `OutputSweeper`

lightning/src/util/sweep.rs

index 59d3a088c2bf58302383008db6d5b703930013e8..846ab96f26ad2e45cfd63214f4d600d51c7bcd71 100644 (file)
@@ -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<SpendableOutputDescriptor>, channel_id: Option<ChannelId>,
-               exclude_static_ouputs: bool, delay_until_height: Option<u32>,
+               exclude_static_outputs: bool, delay_until_height: Option<u32>,
        ) {
                let mut relevant_descriptors = output_descriptors
                        .into_iter()
                        .filter(|desc| {
-                               !(exclude_static_ouputs
+                               !(exclude_static_outputs
                                        && matches!(desc, SpendableOutputDescriptor::StaticOutput { .. }))
                        })
                        .peekable();