File tree 1 file changed +4
-3
lines changed
lightning-transaction-sync/tests
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ fn get_electrsd() -> &'static ElectrsD {
57
57
fn generate_blocks_and_wait ( num : usize ) {
58
58
let miner_lock = MINER_LOCK . get_or_init ( || Mutex :: new ( ( ) ) ) ;
59
59
let _miner = miner_lock. lock ( ) . unwrap ( ) ;
60
- let cur_height = get_bitcoind ( ) . client . get_block_count ( ) . unwrap ( ) ;
61
- let address = get_bitcoind ( ) . client . get_new_address ( Some ( "test" ) , Some ( AddressType :: Legacy ) ) . unwrap ( ) ;
62
- let _block_hashes = get_bitcoind ( ) . client . generate_to_address ( num as u64 , & address) . unwrap ( ) ;
60
+ let cur_height = get_bitcoind ( ) . client . get_block_count ( ) . expect ( "failed to get current block height" ) ;
61
+ let address = get_bitcoind ( ) . client . get_new_address ( Some ( "test" ) , Some ( AddressType :: Legacy ) ) . expect ( "failed to get new address" ) ;
62
+ // TODO: expect this Result once the WouldBlock issue is resolved upstream.
63
+ let _block_hashes_res = get_bitcoind ( ) . client . generate_to_address ( num as u64 , & address) ;
63
64
wait_for_block ( cur_height as usize + num) ;
64
65
}
65
66
You can’t perform that action at this time.
0 commit comments