@@ -448,8 +448,6 @@ mod tests {
448
448
nodes[ 1 ] . node . force_close_broadcasting_latest_txn ( & chan. 2 , & nodes[ 0 ] . node . get_our_node_id ( ) ) . unwrap ( ) ;
449
449
check_closed_event ! ( nodes[ 1 ] , 1 , ClosureReason :: HolderForceClosed , [ nodes[ 0 ] . node. get_our_node_id( ) ] , 100000 ) ;
450
450
let mut added_monitors = nodes[ 1 ] . chain_monitor . added_monitors . lock ( ) . unwrap ( ) ;
451
- let update_map = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) ;
452
- let update_id = update_map. get ( & added_monitors[ 0 ] . 1 . channel_id ( ) ) . unwrap ( ) ;
453
451
454
452
// Set the store's directory to read-only, which should result in
455
453
// returning an unrecoverable failure when we then attempt to persist a
@@ -463,7 +461,7 @@ mod tests {
463
461
txid : Txid :: from_str ( "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ) . unwrap ( ) ,
464
462
index : 0
465
463
} ;
466
- match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 , update_id . 2 ) {
464
+ match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 ) {
467
465
ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
468
466
_ => panic ! ( "unexpected result from persisting new channel" )
469
467
}
@@ -500,7 +498,7 @@ mod tests {
500
498
txid : Txid :: from_str ( "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ) . unwrap ( ) ,
501
499
index : 0
502
500
} ;
503
- match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 , update_id . 2 ) {
501
+ match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 ) {
504
502
ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
505
503
_ => panic ! ( "unexpected result from persisting new channel" )
506
504
}
0 commit comments