[Looks OK?] Attempting to make the library work for DASH as well as BTC#196
Closed
dbolser wants to merge 1 commit intopetertodd:masterfrom
Closed
[Looks OK?] Attempting to make the library work for DASH as well as BTC#196dbolser wants to merge 1 commit intopetertodd:masterfrom
dbolser wants to merge 1 commit intopetertodd:masterfrom
Conversation
Contributor
|
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-DASHandtestnet-DASHas 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.