File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -3395,6 +3395,9 @@ mod tests {
3395
3395
check_closed_broadcast ! ( nodes[ 1 ] , true ) ;
3396
3396
check_closed_event ! ( nodes[ 1 ] , 1 , ClosureReason :: ProcessingError { err: "ChannelMonitor storage failure" . to_string( ) } ) ;
3397
3397
3398
+ // Build a new ChannelMonitorUpdate which contains both the failing commitment tx update
3399
+ // and provides the claim preimages for the two pending HTLCs. The first update generates
3400
+ // an error, but the point of this test is to ensure the later updates are still applied.
3398
3401
let monitor_updates = nodes[ 1 ] . chain_monitor . monitor_updates . lock ( ) . unwrap ( ) ;
3399
3402
let mut replay_update = monitor_updates. get ( & channel. 2 ) . unwrap ( ) . iter ( ) . rev ( ) . skip ( 1 ) . next ( ) . unwrap ( ) . clone ( ) ;
3400
3403
assert_eq ! ( replay_update. updates. len( ) , 1 ) ;
You can’t perform that action at this time.
0 commit comments