-
Notifications
You must be signed in to change notification settings - Fork 83
Added validate_domain in electrum option #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 4 commits
7931dbd
a2f5954
80e132f
31a3fbf
818a744
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,7 +13,6 @@ | |
| //! All subcommands are defined in the below enums. | ||
|
|
||
| #![allow(clippy::large_enum_variant)] | ||
|
|
||
| use bdk_wallet::bitcoin::{ | ||
| Address, Network, OutPoint, ScriptBuf, | ||
| bip32::{DerivationPath, Xpriv}, | ||
|
|
@@ -186,6 +185,10 @@ pub struct WalletOpts { | |
| #[cfg(feature = "electrum")] | ||
| #[arg(env = "ELECTRUM_BATCH_SIZE", short = 'b', long, default_value = "10")] | ||
| pub batch_size: usize, | ||
| ///Electrum validate domain option. | ||
|
||
| #[cfg(feature = "electrum")] | ||
| #[arg(env="VALIDATE_DOMAIN",long = "validate-domain", action = clap::ArgAction::Set, default_value_t = true)] | ||
| pub validate_domain: bool, | ||
|
||
| /// Esplora parallel requests. | ||
| #[cfg(feature = "esplora")] | ||
| #[arg( | ||
|
|
@@ -396,8 +399,11 @@ pub enum OnlineWalletSubCommand { | |
| stop_gap: usize, | ||
| }, | ||
| /// Syncs with the chosen blockchain server. | ||
| Sync, | ||
| /// Broadcasts a transaction to the network. Takes either a raw transaction or a PSBT to extract. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doc comment should not be removed. |
||
| Sync { | ||
| #[command(flatten)] | ||
| wallet_opts: WalletOpts, | ||
| }, | ||
|
|
||
| Broadcast { | ||
| /// Sets the PSBT to sign. | ||
| #[arg( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bdk_electrumis built on this crate, so no need pulling it here.