File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4195,16 +4195,16 @@ impl<Signer: Sign> Channel<Signer> {
4195
4195
// monitor update to the user, even if we return one).
4196
4196
// See test_duplicate_chan_id and test_pre_lockin_no_chan_closed_update for more.
4197
4197
if self . channel_state & ( ChannelState :: FundingSent as u32 | ChannelState :: ChannelFunded as u32 | ChannelState :: ShutdownComplete as u32 ) != 0 {
4198
+ self . latest_monitor_update_id += 1 ;
4198
4199
Some ( ( funding_txo, ChannelMonitorUpdate {
4199
- update_id : self . latest_monitor_update_id + 1 ,
4200
+ update_id : self . latest_monitor_update_id ,
4200
4201
updates : vec ! [ ChannelMonitorUpdateStep :: ChannelForceClosed { should_broadcast } ] ,
4201
4202
} ) )
4202
4203
} else { None }
4203
4204
} else { None } ;
4204
4205
4205
4206
self . channel_state = ChannelState :: ShutdownComplete as u32 ;
4206
4207
self . update_time_counter += 1 ;
4207
- self . latest_monitor_update_id += 1 ;
4208
4208
( monitor_update, dropped_outbound_htlcs)
4209
4209
}
4210
4210
}
You can’t perform that action at this time.
0 commit comments