Skip to content

Conversation

@dbolser
Copy link

@dbolser dbolser commented Dec 11, 2018

Hello,

This is less of a 'pull request' and more of a 'request for feedback' on the way I've (crudely?) begun to implement DASH support for the library. I think there may be a cleaner, more modular way to do this, so any feedback on what I've done here would be appreciated. Of course I plan to add mainnet-DASH and testnet-DASH as well as LTC, BCH, ETC., but before I do that, I'd like to get some feedback on just how hacky this approach is... Also, would you consider maintaining a branch that contains these changes?

Many thanks,
Dan.

@dgpv
Copy link
Contributor

dgpv commented Dec 11, 2018

If you only need to change chain params, you do not need to patch the library. You can subclass MainParams and CoreMainParams and monkey-patch bitcoin.params and bitcoin.core.coreparams (or if you are going to change the source, maybe add special function like SelectAlternativeParams(main_params, core_params), that you call instead of SelectParams, like this: https://github.com/Simplexum/python-bitcointx/blob/master/examples/litecoin-alt-p2sh-prefix.py)

dbolser added a commit to JamieMcNaught/python-bitcoinlib that referenced this pull request Dec 11, 2018
TODO: this can be improved along the lines described here: petertodd#196
@petertodd petertodd closed this Jan 2, 2019
dbolser added a commit to JamieMcNaught/python-bitcoinlib that referenced this pull request Jan 15, 2019
TODO: this can be improved along the lines described here: petertodd#196
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