Skip to content

Commit ca643a2

Browse files
committed
f Drop from_outputs constructor
1 parent 7f321a5 commit ca643a2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

lightning/src/util/sweep.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -350,34 +350,6 @@ where
350350
output_spender: O, change_destination_source: D, kv_store: K, logger: L,
351351
) -> Self {
352352
let outputs = Vec::new();
353-
Self::from_outputs(
354-
outputs,
355-
best_block,
356-
broadcaster,
357-
fee_estimator,
358-
chain_data_source,
359-
output_spender,
360-
change_destination_source,
361-
kv_store,
362-
logger,
363-
)
364-
}
365-
366-
/// Constructs an [`OutputSweeper`] from the given list of [`TrackedSpendableOutput`]s.
367-
///
368-
/// See [`Self::new`] for more information regarding the remaining arguments.
369-
pub fn from_outputs(
370-
outputs: Vec<TrackedSpendableOutput>, best_block: BestBlock, broadcaster: B,
371-
fee_estimator: E, chain_data_source: Option<F>, output_spender: O,
372-
change_destination_source: D, kv_store: K, logger: L,
373-
) -> Self {
374-
if let Some(filter) = chain_data_source.as_ref() {
375-
for output_info in &outputs {
376-
let watched_output = output_info.to_watched_output(best_block.block_hash);
377-
filter.register_output(watched_output);
378-
}
379-
}
380-
381353
let sweeper_state = Mutex::new(SweeperState { outputs, best_block });
382354
Self {
383355
sweeper_state,

0 commit comments

Comments
 (0)