@@ -63,13 +63,6 @@ use std::str::FromStr;
6363#[ cfg( any( feature = "redb" , feature = "compiler" ) ) ]
6464use std:: sync:: Arc ;
6565
66- #[ cfg( feature = "electrum" ) ]
67- use crate :: utils:: BlockchainClient :: Electrum ;
68- #[ cfg( feature = "cbf" ) ]
69- use bdk_kyoto:: LightClient ;
70- use bdk_wallet:: bitcoin:: base64:: prelude:: * ;
71- #[ cfg( feature = "cbf" ) ]
72- use tokio:: select;
7366#[ cfg( any(
7467 feature = "electrum" ,
7568 feature = "esplora" ,
@@ -864,8 +857,8 @@ pub fn handle_config_subcommand(
864857) -> Result < String , Error > {
865858 if network == Network :: Bitcoin {
866859 eprintln ! (
867- "WARNING: You are configuring a wallet for Bitcoin MAINNET.\n \
868- This software is experimental and not recommended for use with real funds.\n \
860+ "WARNING: You are configuring a wallet for Bitcoin MAINNET.
861+ This software is experimental and not recommended for use with real funds.
869862 Consider using a testnet for testing purposes. \n "
870863 ) ;
871864 }
@@ -875,18 +868,18 @@ pub fn handle_config_subcommand(
875868
876869 if ext_descriptor. contains ( "xprv" ) || ext_descriptor. contains ( "tprv" ) {
877870 eprintln ! (
878- "WARNING: Your external descriptor contains PRIVATE KEYS.\n \
879- Private keys will be saved in PLAINTEXT in the config file.\n \
880- This is a security risk. Consider using public descriptors instead."
871+ "WARNING: Your external descriptor contains PRIVATE KEYS.
872+ Private keys will be saved in PLAINTEXT in the config file.
873+ This is a security risk. Consider using public descriptors instead.\n "
881874 ) ;
882875 }
883876
884877 if let Some ( ref internal_desc) = int_descriptor {
885878 if internal_desc. contains ( "xprv" ) || internal_desc. contains ( "tprv" ) {
886879 eprintln ! (
887- "WARNING: Your internal descriptor contains PRIVATE KEYS.\n \
888- Private keys will be saved in PLAINTEXT in the config file.\n \
889- This is a security risk. Consider using public descriptors instead."
880+ "WARNING: Your internal descriptor contains PRIVATE KEYS.
881+ Private keys will be saved in PLAINTEXT in the config file.
882+ This is a security risk. Consider using public descriptors instead.\n "
890883 ) ;
891884 }
892885 }
@@ -1353,8 +1346,9 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
13531346 }
13541347 } ;
13551348
1356- let mut wallet = new_persisted_wallet ( network, & mut persister, wallet_opts) ?;
1357- let blockchain_client = new_blockchain_client ( wallet_opts, & wallet, database_path) ?;
1349+ let mut wallet = new_persisted_wallet ( network, & mut persister, & wallet_opts) ?;
1350+ let blockchain_client =
1351+ new_blockchain_client ( & wallet_opts, & wallet, database_path) ?;
13581352
13591353 let result = handle_online_wallet_subcommand (
13601354 & mut wallet,
@@ -1419,10 +1413,10 @@ pub(crate) async fn handle_command(cli_opts: CliOpts) -> Result<String, Error> {
14191413 } ;
14201414 #[ cfg( not( any( feature = "sqlite" , feature = "redb" ) ) ) ]
14211415 let result = {
1422- let mut wallet = new_wallet ( network, wallet_opts) ?;
1416+ let mut wallet = new_wallet ( network, & wallet_opts) ?;
14231417 handle_offline_wallet_subcommand (
14241418 & mut wallet,
1425- wallet_opts,
1419+ & wallet_opts,
14261420 & cli_opts,
14271421 offline_subcommand. clone ( ) ,
14281422 ) ?
0 commit comments