@@ -206,7 +206,7 @@ pub struct TestChainMonitor<'a> {
206
206
pub added_monitors : Mutex < Vec < ( OutPoint , channelmonitor:: ChannelMonitor < TestChannelSigner > ) > > ,
207
207
pub monitor_updates : Mutex < HashMap < ChannelId , Vec < channelmonitor:: ChannelMonitorUpdate > > > ,
208
208
pub latest_monitor_update_id : Mutex < HashMap < ChannelId , ( OutPoint , u64 , MonitorUpdateId ) > > ,
209
- pub chain_monitor : chainmonitor:: ChainMonitor < TestChannelSigner , & ' a TestChainSource , & ' a chaininterface:: BroadcasterInterface , & ' a TestFeeEstimator , & ' a TestLogger , & ' a chainmonitor:: Persist < TestChannelSigner > > ,
209
+ pub chain_monitor : chainmonitor:: ChainMonitor < TestChannelSigner , & ' a TestChainSource , & ' a dyn chaininterface:: BroadcasterInterface , & ' a TestFeeEstimator , & ' a TestLogger , & ' a dyn chainmonitor:: Persist < TestChannelSigner > > ,
210
210
pub keys_manager : & ' a TestKeysInterface ,
211
211
/// If this is set to Some(), the next update_channel call (not watch_channel) must be a
212
212
/// ChannelForceClosed event for the given channel_id with should_broadcast set to the given
@@ -217,7 +217,7 @@ pub struct TestChainMonitor<'a> {
217
217
pub expect_monitor_round_trip_fail : Mutex < Option < ChannelId > > ,
218
218
}
219
219
impl < ' a > TestChainMonitor < ' a > {
220
- pub fn new ( chain_source : Option < & ' a TestChainSource > , broadcaster : & ' a chaininterface:: BroadcasterInterface , logger : & ' a TestLogger , fee_estimator : & ' a TestFeeEstimator , persister : & ' a chainmonitor:: Persist < TestChannelSigner > , keys_manager : & ' a TestKeysInterface ) -> Self {
220
+ pub fn new ( chain_source : Option < & ' a TestChainSource > , broadcaster : & ' a dyn chaininterface:: BroadcasterInterface , logger : & ' a TestLogger , fee_estimator : & ' a TestFeeEstimator , persister : & ' a dyn chainmonitor:: Persist < TestChannelSigner > , keys_manager : & ' a TestKeysInterface ) -> Self {
221
221
Self {
222
222
added_monitors : Mutex :: new ( Vec :: new ( ) ) ,
223
223
monitor_updates : Mutex :: new ( HashMap :: new ( ) ) ,
0 commit comments