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

Add a new node config entry: TestShelleyHardForkAtVersion #1345

Merged
merged 1 commit into from
Jun 25, 2020

Conversation

dcoutts
Copy link
Contributor

@dcoutts dcoutts commented Jun 25, 2020

Setting this, e.g.
TestShelleyHardForkAtVersion: 1

Should cause the hard fork to occur when the protocol major version
eraches this value, rather than the default of 2.

This allows a simpler test setup. Otherwise, given that Byron genesis
always starts at protocol version 0, it needs two protocol updates
(includng a node restart) to get to the hard fork.

Setting this, e.g.
TestShelleyHardForkAtVersion: 1

Should cause the hard fork to occur when the protocol major version
eraches this value, rather than the default of 2.

This allows a simpler test setup. Otherwise, given that Byron genesis
always starts at protocol version 0, it needs two protocol updates
(includng a node restart) to get to the hard fork.
@@ -173,7 +174,11 @@ mkConsensusProtocolCardano NodeByronProtocolConfiguration {
-- Version 1 is Byron with Ouroboros Permissive BFT
-- Version 2 is Shelley
--
Nothing -> Consensus.NoHardCodedTransition 2
-- But we also provide an override to allow for simpler test setups
-- such as triggering at the 0 -> 1 transition .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
-- such as triggering at the 0 -> 1 transition .
-- such as triggering at the 0 -> 1 transition.

Copy link
Contributor

@kantp kantp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that will help testing of the hard fork!

@dcoutts
Copy link
Contributor Author

dcoutts commented Jun 25, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Jun 25, 2020

@iohk-bors iohk-bors bot merged commit 0793655 into master Jun 25, 2020
@iohk-bors iohk-bors bot deleted the dcoutts/byron-shelley-transition-override branch June 25, 2020 21:19
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.

4 participants