-
Notifications
You must be signed in to change notification settings - Fork 217
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 unit test to check updates of decentralizationLevel #1736
Conversation
-- | A value that is not the same as what's in the test data genesis. | ||
halfD :: DecentralizationLevel | ||
halfD = DecentralizationLevel p | ||
where Right p = mkPercentage (1/2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is sort of weird to have this unit test in the byron
package; the decentralization level is something that exists only in Shelley.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK I moved it to the shelley package.
@@ -6,7 +6,7 @@ protocolParams: | |||
protocolVersion: | |||
minor: 0 | |||
major: 0 | |||
decentralisationParam: 1 | |||
decentralisationParam: 1 # means 0% decentralised |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird that github shows this diff, whereas master decentralisationParam
is actually 0.25
🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well github doesn't show merge conflicts. It can only show a diff to the merge base.
734dd56
to
84528b0
Compare
84528b0
to
92bf608
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
bors r- |
bors r+ |
1736: Add unit test to check updates of decentralizationLevel r=KtorZ a=rvl ### Issue Number #1693 can be moved to "QA" column once this is merged. ### Overview - Enhances the "unit test" to check that protocol parameters can be updated to include decentralization level. - Removes "todo" comment from `NETWORK_PARAMS - Able to fetch network parameters` integration test case. The `decentralisationParam` in the shelley integration test genesis is 1.0 ⇒ 0% decentralised. Co-authored-by: Rodney Lorrimar <[email protected]> Co-authored-by: KtorZ <[email protected]>
Build failed |
Ho. We need to provision unit tests with |
bors r+ |
Build succeeded |
Issue Number
#1693 can be moved to "QA" column once this is merged.
Overview
NETWORK_PARAMS - Able to fetch network parameters
integration test case. ThedecentralisationParam
in the shelley integration test genesis is 1.0 ⇒ 0% decentralised.