File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -281,8 +281,9 @@ where C::Target: chain::Filter,
281
281
if let Err ( e) = self . persister . persist_new_channel ( funding_outpoint, & monitor) {
282
282
log_error ! ( self . logger, "Failed to persist new channel data" ) ;
283
283
return Err ( e) ;
284
+ } else {
285
+ log_trace ! ( self . logger, "Finished persisting new Channel Monitor for channel {}" , log_bytes!( funding_txo. 0 . to_channel_id( ) [ ..] ) ) ;
284
286
}
285
- log_trace ! ( self . logger, "Finished persisting new Channel Monitor for channel {}" , log_bytes!( funding_txo. 0 . to_channel_id( ) [ ..] ) ) ;
286
287
if let Some ( ref chain_source) = self . chain_source {
287
288
monitor. load_outputs_to_watch ( chain_source) ;
288
289
}
@@ -318,8 +319,9 @@ where C::Target: chain::Filter,
318
319
let persist_res = self . persister . update_persisted_channel ( funding_txo, & update, monitor) ;
319
320
if let Err ( ref e) = persist_res {
320
321
log_error ! ( self . logger, "Failed to persist channel monitor update: {:?}" , e) ;
322
+ } else {
323
+ log_trace ! ( self . logger, "Finished persisting Channel Monitor Update for channel {}" , log_funding_info!( monitor) ) ;
321
324
}
322
- log_trace ! ( self . logger, "Finished persisting Channel Monitor Update for channel {}" , log_funding_info!( monitor) ) ;
323
325
if update_res. is_err ( ) {
324
326
Err ( ChannelMonitorUpdateErr :: PermanentFailure )
325
327
} else {
You can’t perform that action at this time.
0 commit comments