#[structopt(name = "", setting = AppSettings::NoBinaryName,
version = option_env ! ("CARGO_PKG_VERSION").unwrap_or("unknown"),
author = option_env ! ("CARGO_PKG_AUTHORS").unwrap_or(""))]
-pub enum ReplSubCommand {
+enum ReplSubCommand {
#[cfg(any(
feature = "electrum",
feature = "esplora",
feature = "compact_filters",
feature = "rpc"
))]
-pub fn new_blockchain(_network: Network, wallet_opts: &WalletOpts) -> Result<AnyBlockchain, Error> {
+fn new_blockchain(_network: Network, wallet_opts: &WalletOpts) -> Result<AnyBlockchain, Error> {
#[cfg(feature = "electrum")]
let config = AnyBlockchainConfig::Electrum(ElectrumBlockchainConfig {
url: wallet_opts.electrum_opts.server.clone(),
Ok(AnyBlockchain::from_config(&config)?)
}
-pub fn new_wallet<D>(
+fn new_wallet<D>(
network: Network,
wallet_opts: &WalletOpts,
database: D,
use bdk::miniscript::bitcoin::network::constants::Network::Testnet;
#[cfg(all(feature = "reserves", feature = "electrum"))]
use bdk::{
- blockchain::ElectrumBlockchain, database::MemoryDatabase, electrum_client::Client, Wallet,
+ blockchain::ElectrumBlockchain, database::MemoryDatabase, electrum_client::Client,
+ SyncOptions, Wallet,
};
use std::str::{self, FromStr};
use structopt::StructOpt;
- #[cfg(all(feature = "reserves", feature = "electrum",))]
- use crate::bdk::SyncOptions;
-
#[test]
fn test_parse_wallet_get_new_address() {
let cli_args = vec!["bdk-cli", "--network", "bitcoin", "wallet",