@@ -498,17 +498,13 @@ mod tests {
498
498
do_read_write_remove_list_persist, do_test_data_migration, do_test_store,
499
499
} ;
500
500
501
- use bitcoin:: Txid ;
502
-
503
501
use lightning:: chain:: chainmonitor:: Persist ;
504
- use lightning:: chain:: transaction:: OutPoint ;
505
502
use lightning:: chain:: ChannelMonitorUpdateStatus ;
506
503
use lightning:: check_closed_event;
507
504
use lightning:: events:: { ClosureReason , MessageSendEventsProvider } ;
508
505
use lightning:: ln:: functional_test_utils:: * ;
509
506
use lightning:: util:: persist:: read_channel_monitors;
510
507
use lightning:: util:: test_utils;
511
- use std:: str:: FromStr ;
512
508
513
509
impl Drop for FilesystemStore {
514
510
fn drop ( & mut self ) {
@@ -622,14 +618,7 @@ mod tests {
622
618
perms. set_readonly ( true ) ;
623
619
fs:: set_permissions ( path, perms) . unwrap ( ) ;
624
620
625
- let test_txo = OutPoint {
626
- txid : Txid :: from_str (
627
- "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ,
628
- )
629
- . unwrap ( ) ,
630
- index : 0 ,
631
- } ;
632
- match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 ) {
621
+ match store. persist_new_channel ( & added_monitors[ 0 ] . 1 ) {
633
622
ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
634
623
_ => panic ! ( "unexpected result from persisting new channel" ) ,
635
624
}
@@ -676,14 +665,7 @@ mod tests {
676
665
// handle, hence why the test is Windows-only.
677
666
let store = FilesystemStore :: new ( ":<>/" . into ( ) ) ;
678
667
679
- let test_txo = OutPoint {
680
- txid : Txid :: from_str (
681
- "8984484a580b825b9972d7adb15050b3ab624ccd731946b3eeddb92f4e7ef6be" ,
682
- )
683
- . unwrap ( ) ,
684
- index : 0 ,
685
- } ;
686
- match store. persist_new_channel ( test_txo, & added_monitors[ 0 ] . 1 ) {
668
+ match store. persist_new_channel ( & added_monitors[ 0 ] . 1 ) {
687
669
ChannelMonitorUpdateStatus :: UnrecoverableError => { } ,
688
670
_ => panic ! ( "unexpected result from persisting new channel" ) ,
689
671
}
0 commit comments