added configuration for network, default mainnet#34
added configuration for network, default mainnet#34krtschmr wants to merge 7 commits intoGemHQ:masterfrom
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.