@@ -448,8 +448,6 @@ mod tests {
448448 nodes[ 1 ] . node . force_close_broadcasting_latest_txn ( & chan. 2 , & nodes[ 0 ] . node . get_our_node_id ( ) ) . unwrap ( ) ;
449449 check_closed_event ! ( nodes[ 1 ] , 1 , ClosureReason :: HolderForceClosed , [ nodes[ 0 ] . node. get_our_node_id( ) ] , 100000 ) ;
450450 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 ( ) ;
453451
454452 // Set the store's directory to read-only, which should result in
455453 // returning an unrecoverable failure when we then attempt to persist a
@@ -463,7 +461,7 @@ mod tests {
463461 txid : Txid :: from_str ( "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ) . unwrap ( ) ,
464462 index : 0
465463 } ;
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 ) {
467465 ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
468466 _ => panic ! ( "unexpected result from persisting new channel" )
469467 }
@@ -500,7 +498,7 @@ mod tests {
500498 txid : Txid :: from_str ( "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ) . unwrap ( ) ,
501499 index : 0
502500 } ;
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 ) {
504502 ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
505503 _ => panic ! ( "unexpected result from persisting new channel" )
506504 }
0 commit comments