-
Notifications
You must be signed in to change notification settings - Fork 23
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
Use a single protocol version across all eras #1224
Conversation
ouroboros-consensus-cardano/src/ouroboros-consensus-cardano/Ouroboros/Consensus/Cardano/Node.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/ouroboros-consensus-cardano/Ouroboros/Consensus/Cardano/Node.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Protocol/Praos.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/unstable-cardano-testlib/Test/Consensus/Cardano/ProtocolInfo.hs
Outdated
Show resolved
Hide resolved
...boros-consensus-cardano/src/unstable-cardano-tools/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/ouroboros-consensus-cardano/Ouroboros/Consensus/Cardano/Node.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Protocol/Praos.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Node/Protocol/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/test/cardano-test/Test/ThreadNet/Cardano.hs
Outdated
Show resolved
Hide resolved
023d299
to
ad3deca
Compare
46f3bca
to
280aa95
Compare
ouroboros-consensus-cardano/src/unstable-cardano-testlib/Test/Consensus/Cardano/ProtocolInfo.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/test/cardano-test/Test/ThreadNet/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano/src/ouroboros-consensus-cardano/Ouroboros/Consensus/Cardano/Node.hs
Outdated
Show resolved
Hide resolved
...nsensus-cardano/changelog.d/20240823_131440_damian.nadales_324_simplify_protver_arguments.md
Show resolved
Hide resolved
...boros-consensus-cardano/src/unstable-cardano-tools/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Outdated
Show resolved
Hide resolved
72bc92f
to
dc5a78f
Compare
-- TODO: could be simplified once we implement something like | ||
-- ouroboros-network#4115. |
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.
I think this TODO is done?
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.
I'm not sure. I wanted to discuss this with @jorisdral, but leave it there until then. I'd be in favour of creating a new issue if we identify concrete simplifications.
-- but they're currently unused, and they're irrelevant for the | ||
-- consensus logic. | ||
-- | ||
-- For Cardano mainnet, the Shelley era has major protocol verison |
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.
-- For Cardano mainnet, the Shelley era has major protocol verison | |
-- For Cardano mainnet, the Shelley era has major protocol version |
- Add an extra field `cardanoProtocolVersion` to `ProtocolParamsCardano` - Remove `shelleyProtVer` from `ProtocolParamsShelley`. The corresponding comment was moved to `ProtocolParamsCardano`. - Remove eras protocol parameters, except for Byron, which is still used. - Remove `ProtocolParams` data family and `PerEraProtocolParams`. - Remove protocol versions from the `HardForkSpec`. - Expand the comments of 'MaxMajorProtVer'
dc5a78f
to
d57d4e5
Compare
While giving us flexibility, using different protocol versions for all eras increased the level of complexity and led to several errors in the past. This PR removes this flexibility by using a single protocol version, which determines the maximum protocol version Consensus supports.
See #324 for more background.
Closes #324.
Closes #276.
TODOs:
FIXME
s.