@@ -962,7 +962,8 @@ where
962
962
Self { sweeper : Arc :: new ( sweeper) }
963
963
}
964
964
965
- /// Regenerates and broadcasts the spending transaction for any outputs that are pending
965
+ /// Regenerates and broadcasts the spending transaction for any outputs that are pending. Wraps
966
+ /// [`OutputSweeper::regenerate_and_broadcast_spend_if_necessary`].
966
967
pub fn regenerate_and_broadcast_spend_if_necessary ( & self ) -> Result < ( ) , ( ) > {
967
968
let mut fut = Box :: pin ( self . sweeper . regenerate_and_broadcast_spend_if_necessary ( ) ) ;
968
969
let mut waker = dummy_waker ( ) ;
@@ -976,7 +977,7 @@ where
976
977
}
977
978
}
978
979
979
- /// Tells the sweeper to track the given outputs descriptors.
980
+ /// Tells the sweeper to track the given outputs descriptors. Wraps [`OutputSweeper::track_spendable_outputs`].
980
981
pub fn track_spendable_outputs (
981
982
& self , output_descriptors : Vec < SpendableOutputDescriptor > , channel_id : Option < ChannelId > ,
982
983
exclude_static_outputs : bool , delay_until_height : Option < u32 > ,
@@ -989,13 +990,13 @@ where
989
990
)
990
991
}
991
992
992
- /// Returns a list of the currently tracked spendable outputs.
993
+ /// Returns a list of the currently tracked spendable outputs. Wraps [`OutputSweeper::tracked_spendable_outputs`].
993
994
pub fn tracked_spendable_outputs ( & self ) -> Vec < TrackedSpendableOutput > {
994
995
self . sweeper . tracked_spendable_outputs ( )
995
996
}
996
997
997
998
/// Returns the inner async sweeper for testing purposes.
998
- // #[cfg(test)]
999
+ #[ cfg( any ( test, feature = "_test_utils" ) ) ]
999
1000
pub fn sweeper_async (
1000
1001
& self ,
1001
1002
) -> Arc < OutputSweeper < B , Arc < ChangeDestinationSourceSyncWrapper < D > > , E , F , K , L , O > > {
0 commit comments