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

Client::with_network_and_host(Network) #233

Open
casey opened this issue Aug 4, 2022 · 0 comments
Open

Client::with_network_and_host(Network) #233

casey opened this issue Aug 4, 2022 · 0 comments

Comments

@casey
Copy link
Contributor

casey commented Aug 4, 2022

It would be very convenient if it were possible to configure a client using the default port and cookie file location for a particular network. For example, Client::with_network_and_host("localhost", Network::Bitcoin) would use localhost:8333 as the url, and DEFAULT_DATA_DIR/.cookie as the cookie file for auth.

The default port part is easy, since that's fixed for every network. The default data dir location is a little trickier, because that varies by OS, but it shouldn't be too bad.

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

No branches or pull requests

1 participant