-
Notifications
You must be signed in to change notification settings - Fork 65
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
Added validate_domain Electrum option #151
base: master
Are you sure you want to change the base?
Conversation
b36d9b3
to
8a69f80
Compare
Signed-off-by: Anmol Agrawal <[email protected]>
Sorry! Now after testing I pushed. I Hope all check to pass. |
Hi, thanks for adding a |
Ohh okay!! I tried!. |
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.
You should always run the tests locally to verify your code changes are correct.
@@ -320,6 +320,10 @@ pub struct ElectrumOpts { | |||
default_value = "10" | |||
)] | |||
pub stop_gap: usize, | |||
|
|||
/// Enable or disable domain validation when connecting to Electrum servers. | |||
#[clap(name = "VALIDATE_DOMAIN", long = "validate_domain", takes_value(false))] |
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.
you shouldn't need takes_value(false)
#[clap(name = "VALIDATE_DOMAIN", long = "validate_domain", takes_value(false))] | |
#[clap(name = "VALIDATE_DOMAIN", long = "validate_domain")] |
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.
sure!
|
||
/// Enable or disable domain validation when connecting to Electrum servers. | ||
#[clap(name = "VALIDATE_DOMAIN", long = "validate_domain", takes_value(false))] | ||
pub validate_domain: Option<bool>, |
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.
This shouldn't be an Option
, only a bool
, if the flag isn't used then the value will default to false
.
pub validate_domain: Option<bool>, | |
pub validate_domain: bool, |
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.
oh, Okayy
Sorry, Actually, i am new so didn't know about what testing commands are. As I did |
Description
fixes #134
Notes to the reviewers
Changelog notice
Checklists
All Submissions:
cargo fmt
andcargo clippy
before committingNew Features:
CHANGELOG.md
Bugfixes:
cc @rajarshimaitra @danielabrozzoni