@@ -29,7 +29,7 @@ use bitcoin::hash_types::Txid;
29
29
use chain;
30
30
use chain:: { ChannelMonitorUpdateErr , Filter , WatchedOutput } ;
31
31
use chain:: chaininterface:: { BroadcasterInterface , FeeEstimator } ;
32
- use chain:: channelmonitor:: { ChannelMonitor , ChannelMonitorUpdate , Balance , MonitorEvent , MonitorUpdated , TransactionOutputs } ;
32
+ use chain:: channelmonitor:: { ChannelMonitor , ChannelMonitorUpdate , Balance , MonitorEvent , MonitorUpdatedEvent , TransactionOutputs } ;
33
33
use chain:: transaction:: { OutPoint , TransactionData } ;
34
34
use chain:: keysinterface:: Sign ;
35
35
use util:: logger:: Logger ;
@@ -308,7 +308,7 @@ where C::Target: chain::Filter,
308
308
// UpdateCompleted event.
309
309
return ;
310
310
}
311
- self . user_provided_events . lock ( ) . unwrap ( ) . push ( MonitorEvent :: UpdateCompleted ( MonitorUpdated {
311
+ self . user_provided_events . lock ( ) . unwrap ( ) . push ( MonitorEvent :: UpdateCompleted ( MonitorUpdatedEvent {
312
312
funding_txo,
313
313
monitor_update_id : monitor_data. monitor . get_latest_update_id ( ) ,
314
314
} ) ) ;
@@ -321,7 +321,7 @@ where C::Target: chain::Filter,
321
321
/// channel_monitor_updated once with the highest ID.
322
322
#[ cfg( any( test, feature = "fuzztarget" ) ) ]
323
323
pub fn force_channel_monitor_updated ( & self , funding_txo : OutPoint , monitor_update_id : u64 ) {
324
- self . user_provided_events . lock ( ) . unwrap ( ) . push ( MonitorEvent :: UpdateCompleted ( MonitorUpdated {
324
+ self . user_provided_events . lock ( ) . unwrap ( ) . push ( MonitorEvent :: UpdateCompleted ( MonitorUpdatedEvent {
325
325
funding_txo,
326
326
monitor_update_id,
327
327
} ) ) ;
0 commit comments