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

Pass the bitcoind rpc url via env variable #1289

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

dpc
Copy link
Contributor

@dpc dpc commented Jan 12, 2023

On top of #1288

@dpc dpc marked this pull request as draft January 12, 2023 08:18
@dpc dpc force-pushed the bitcoind-connection-env-2 branch from b2789db to f090b06 Compare January 12, 2023 08:32
@dpc dpc marked this pull request as ready for review January 12, 2023 16:52
@dpc dpc force-pushed the bitcoind-connection-env-2 branch from f090b06 to c2d6c2b Compare January 12, 2023 18:46
pub const FM_BITCOIND_RPC_ENV: &str = "FM_BITCOIND_RPC";

/// Default url that will be used if [`FM_BITCOIND_RPC_ENV`] is not set
pub const FM_BITCOIND_RPC_DEFAULT_FALLBACK: &str = "http://127.0.0.1:8332";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why default to mainnet?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess this is the default of bitcoin-cli ...

just seem like kinda arbitrary default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because that's the intended setup it's meant to be used with. Anyone not running it against mainnet, is a developer, not user, and they do an extra step, I think.

If anyone has good arguments against it, we can change. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't argue with that!

@justinmoon justinmoon merged commit 48d9664 into fedimint:master Jan 12, 2023
@dpc dpc deleted the bitcoind-connection-env-2 branch November 12, 2024 04:40
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.

None yet

2 participants