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

[0.17] Chainparams: Introduce consensus.genesis_style for compatibility #436

Closed

Conversation

jtimon
Copy link
Contributor

@jtimon jtimon commented Oct 17, 2018

Introduces consensus.genesis_style for compatibility and sanity tests.
Style "default_style" is what is meant to be used and extended, since it opens the door to commit to any chainparams we would like to commit.

Style "regtest2_style" is for compatibility with bitcoin/bitcoin#8994

I'm trying to make sure that #433 can be compatible with kallewoof/bitcoin#5 using "signet_old" in #433, but I'm not getting the genesis block hash that I expect, this is driving me kind of crazy, see kallewoof/bitcoin#6 for additional context.

In the PR for block signing I plan to create another style for elements-0.14 compatibility.

@jtimon jtimon added the 0.17 label Oct 17, 2018
@jtimon jtimon changed the title Chainparams: Introduce consensus.genesis_style for compatibility [0.17] Chainparams: Introduce consensus.genesis_style for compatibility Oct 17, 2018
@jtimon jtimon changed the title [0.17] Chainparams: Introduce consensus.genesis_style for compatibility NOMERGE:[0.17] Chainparams: Introduce consensus.genesis_style for compatibility Oct 17, 2018
@jtimon jtimon changed the title NOMERGE:[0.17] Chainparams: Introduce consensus.genesis_style for compatibility [0.17] Chainparams: Introduce consensus.genesis_style for compatibility Oct 18, 2018
@jtimon jtimon force-pushed the e17-genesis-style branch 2 times, most recently from 01fd213 to e195010 Compare October 18, 2018 22:55
@jtimon jtimon force-pushed the e17-genesis-style branch 2 times, most recently from c7f7b90 to e75f8a0 Compare October 22, 2018 16:05
@luke-jr
Copy link
Contributor

luke-jr commented Nov 19, 2018

Why not just provide the raw coinbase instead of a predefined "style", and default it to whatever commitments you want?

@jtimon
Copy link
Contributor Author

jtimon commented Nov 22, 2018

Well, ideally the styles would unify with time (at least some of them, for example, liquidV1 has its own style not included here) and this seemed simpler. Feel free to create a competing PR.

By the way, since liquid is now public, liquidv1's style could be implemented and tested here. Or perhaps I can do that on a separated PR on top of this one.

@instagibbs
Copy link
Collaborator

@luke-jr raw coinbase such as what exactly? Just trying to understand the suggestion

@instagibbs
Copy link
Collaborator

just noting we can add this test post-merge: f00e979#diff-912bf7afc60ccdf9de453ce3a8e0ffceR29 here

@instagibbs
Copy link
Collaborator

Closing for now, we're supporting this piecemeal.

@instagibbs instagibbs closed this Dec 18, 2018
@jtimon
Copy link
Contributor Author

jtimon commented Dec 18, 2018 via email

@instagibbs
Copy link
Collaborator

I meant that Carl has taken half of this PR(note #467) and introduced two genesis styles already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants