@@ -1850,7 +1850,6 @@ mod tests {
18501850 use bitcoin:: hashes:: Hash ;
18511851 use bitcoin:: network:: constants:: Network ;
18521852 use bitcoin:: blockdata:: constants:: genesis_block;
1853- use bitcoin:: blockdata:: script:: Script ;
18541853 use bitcoin:: blockdata:: transaction:: TxOut ;
18551854
18561855 use hex;
@@ -2029,8 +2028,8 @@ mod tests {
20292028 let node_1_privkey = & SecretKey :: from_slice ( & [ 42 ; 32 ] ) . unwrap ( ) ;
20302029 let node_2_privkey = & SecretKey :: from_slice ( & [ 41 ; 32 ] ) . unwrap ( ) ;
20312030
2032- let good_script = make_funding_redeemscript ( & PublicKey :: from_secret_key ( secp_ctx, & node_1_btckey ) ,
2033- & PublicKey :: from_secret_key ( secp_ctx, & node_2_btckey ) ) . to_v0_p2wsh ( ) ;
2031+ let good_script = make_funding_redeemscript ( & PublicKey :: from_secret_key ( & secp_ctx, & node_1_privkey ) ,
2032+ & PublicKey :: from_secret_key ( & secp_ctx, & node_2_privkey ) ) . to_v0_p2wsh ( ) ;
20342033 let valid_announcement = get_signed_channel_announcement ( |_| { } , node_1_privkey, node_2_privkey, & secp_ctx) ;
20352034
20362035 // Test if the UTXO lookups were not supported
@@ -2155,8 +2154,8 @@ mod tests {
21552154
21562155 {
21572156 // Announce a channel we will update
2158- let good_script = make_funding_redeemscript ( & PublicKey :: from_secret_key ( secp_ctx, & node_1_privkey) ,
2159- & PublicKey :: from_secret_key ( secp_ctx, & node_2_privkey) ) . to_v0_p2wsh ( ) ;
2157+ let good_script = make_funding_redeemscript ( & PublicKey :: from_secret_key ( & secp_ctx, & node_1_privkey) ,
2158+ & PublicKey :: from_secret_key ( & secp_ctx, & node_2_privkey) ) . to_v0_p2wsh ( ) ;
21602159
21612160 * chain_source. utxo_ret . lock ( ) . unwrap ( ) = Ok ( TxOut { value : amount_sats, script_pubkey : good_script. clone ( ) } ) ;
21622161
0 commit comments