File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -599,20 +599,16 @@ where C::Target: chain::Filter,
599
599
match persist_res {
600
600
ChannelMonitorUpdateResult :: UpdateInProgress => {
601
601
log_info ! ( self . logger, "Persistence of new ChannelMonitor for channel {} in progress" , log_funding_info!( monitor) ) ;
602
+ pending_monitor_updates. push ( update_id) ;
602
603
} ,
603
604
ChannelMonitorUpdateResult :: PermanentFailure => {
604
605
log_error ! ( self . logger, "Persist of new ChannelMonitor for channel {} failed" , log_funding_info!( monitor) ) ;
606
+ return persist_res;
605
607
} ,
606
608
ChannelMonitorUpdateResult :: UpdateComplete => {
607
609
log_info ! ( self . logger, "Finished persisting new ChannelMonitor for channel {}" , log_funding_info!( monitor) ) ;
608
610
}
609
611
}
610
- if persist_res == ChannelMonitorUpdateResult :: PermanentFailure {
611
- return persist_res;
612
- }
613
- if persist_res== ChannelMonitorUpdateResult :: UpdateInProgress {
614
- pending_monitor_updates. push ( update_id) ;
615
- }
616
612
if let Some ( ref chain_source) = self . chain_source {
617
613
monitor. load_outputs_to_watch ( chain_source) ;
618
614
}
You can’t perform that action at this time.
0 commit comments