Skip to content
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

Make Esplora feature optional for CLI/REPL #218

Merged
merged 3 commits into from
Dec 11, 2020

Conversation

eupn
Copy link
Contributor

@eupn eupn commented Dec 9, 2020

I found this low-hanging fruit in Discord about making esplora optional for CLI.

@afilini
Copy link
Member

afilini commented Dec 9, 2020

Concept ACK, though I would return an error if an esplora server is specified while the feature is disabled. Something that tells the user to enable the feature first

@eupn
Copy link
Contributor Author

eupn commented Dec 9, 2020 via email

@notmandatory
Copy link
Member

ACK 5b34f0d
@eupn are you able to sign your commits?

I tested repl with and without the esplora features. I can confirm that if the esplora feature is not used then esplora options return an appropriate error, ie:

$ cargo run --features cli-utils --example repl -- --descriptor "wpkh(tpubEBr4i6yk5nf5DAaJpsi9N2pPYBeJ7fZ5Z9rmN4977iYLCGco1VyjB9tvvuvYtfZzjD5A8igzgw3HeWeeKFmanHYqksqZXYXGsw5zjnj7KM9/*)" --esplora_concurrency 2 sync

error: Found argument '--esplora_concurrency' which wasn't expected, or isn't valid in this context

@eupn
Copy link
Contributor Author

eupn commented Dec 9, 2020

@notmandatory, let me set up signing tools. I'll force-push signed commits.

@eupn
Copy link
Contributor Author

eupn commented Dec 11, 2020

@notmandatory commits are signed.

@afilini
Copy link
Member

afilini commented Dec 11, 2020

I think you've only signed the last two commits, not all three. Sorry to bother you again with this.. :(

@eupn
Copy link
Contributor Author

eupn commented Dec 11, 2020

@afilini no worries, my bad!

@afilini
Copy link
Member

afilini commented Dec 11, 2020

ACK c9a05c0, thanks!

@afilini afilini merged commit 010b7ee into bitcoindevkit:master Dec 11, 2020
@eupn eupn deleted the optional-esplora-cli branch December 11, 2020 15:31
nickfarrow pushed a commit to nickfarrow/bdk that referenced this pull request Feb 21, 2022
Add secp as a param instead of creating a new context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants