-
Notifications
You must be signed in to change notification settings - Fork 68
added configuration for network, default mainnet #34
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?
Conversation
Whats up in here? |
i'm also vouching to change the default network up to :testnet3, but this might break applications so that should come in future. i wonder why nobody watched / edited / reviewed this merge request. it's super useful. |
i really wonder, why this is such a dead gem. my pullrequest is very very useful and already working in production for a bitcoin acceptance platform. |
RIP. so sad to see. open source sometimes sucks. |
Sorry for the late response. I'm happy to accept this but would love to see some tests for various network configs. |
Hi, what do you think of completely remove the network hash argument on each method ( and only keep the network through MoneyTree instance) ? We lose compatibility with older version but i think it will be more readable. |
@bdescamps so you would like to read always from within the config? Would that still be threadsafe? I want to have multiple instances running for each (test)net available. If they all read from one static config, than that would not work? |
To me it's threadsafe because every instance will take his own |
Based on my Issue #33 the following pull request
adds ability to set the network globally
default will be
:bitcoin
, as every method had it as a default argument aswelltests are all passing. nothing was changed, only added.