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 @@ -587,20 +587,16 @@ where C::Target: chain::Filter,
587
587
match persist_res {
588
588
ChannelMonitorUpdateResult :: UpdateInProgress => {
589
589
log_info ! ( self . logger, "Persistence of new ChannelMonitor for channel {} in progress" , log_funding_info!( monitor) ) ;
590
+ pending_monitor_updates. push ( update_id) ;
590
591
} ,
591
592
ChannelMonitorUpdateResult :: PermanentFailure => {
592
593
log_error ! ( self . logger, "Persist of new ChannelMonitor for channel {} failed" , log_funding_info!( monitor) ) ;
594
+ return persist_res;
593
595
} ,
594
596
ChannelMonitorUpdateResult :: UpdateComplete => {
595
597
log_info ! ( self . logger, "Finished persisting new ChannelMonitor for channel {}" , log_funding_info!( monitor) ) ;
596
598
}
597
599
}
598
- if persist_res == ChannelMonitorUpdateResult :: PermanentFailure {
599
- return persist_res;
600
- }
601
- if persist_res== ChannelMonitorUpdateResult :: UpdateInProgress {
602
- pending_monitor_updates. push ( update_id) ;
603
- }
604
600
if let Some ( ref chain_source) = self . chain_source {
605
601
monitor. load_outputs_to_watch ( chain_source) ;
606
602
}
You can’t perform that action at this time.
0 commit comments