Skip to content

Fix typo in OutputSweeper #3009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lightning/src/util/sweep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
///
Expand All @@ -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();
Expand Down