-
Notifications
You must be signed in to change notification settings - Fork 87
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
Integrate the Conway era #3971
Integrate the Conway era #3971
Conversation
ouroboros-consensus-cardano/src/Ouroboros/Consensus/Cardano/ShelleyBased.hs
Show resolved
Hide resolved
} = | ||
protocolInfoPraosShelleyBased | ||
protocolParamsShelleyBased | ||
(error "Conway currently pretending to be Alonzo", error "Conway currently pretending to be Alonzo") |
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.
TODO I don't understand this; just copied it from Babbage.
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've fixed this now.
I still don't understand why it was that way. I've simply added those stubs as arguments to the function being defined. I'm fairly certain that function is currently dead-code within the greater codebase, so this shouldn't induce any work.
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 Unresolving this, just to double-check it again.
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've come to the same conclusion just now as I did in my Sept 7th message earlier in this same comment thread: this function is likely dead, but some downstream 3rd-party might be using it; as a compromise, I've added the stubbed value as an argument.
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.
TODO for @dnadales :
-
mention this additional parameter in the INTERFACE-changelog.md
-
or else make the executive decision to simply remove this function (and also the corresponding new Conway one) instead of adding an argument to it. (Also mention that in the changelog)
Do we need to add the golden files for the new era? |
ouroboros-consensus-cardano-test/test/Test/ThreadNet/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Show resolved
Hide resolved
ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Node/Praos.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Show resolved
Hide resolved
c6ce33b
to
f7b5f92
Compare
The three remaining CI failures are because we don't have a |
A status update. I think this PR is now feature complete. However, the commit history remains messy and there are likely some comments to add. |
I think that this ledger PR IntersectMBO/cardano-ledger#3022 should unblock John's work to add a |
Update: until we get further notice, the Consensus team is going to park this Conway PR. |
@nfrisby is there any reason not to merge it now? it would be nice to have the new era integrated all the way into node. |
a4fa369
to
5f46f41
Compare
@disassembler @JaredCorduan @nfrisby I think these are the tasks that remain:
I do not know if there are additional tasks that I did not capture. |
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 did a pass. (I would Request Changes, but since I originally opened the PR, I can't 😄)
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Show resolved
Hide resolved
ouroboros-consensus-shelley/src/Ouroboros/Consensus/Shelley/Node/Praos.hs
Outdated
Show resolved
Hide resolved
} = | ||
protocolInfoPraosShelleyBased | ||
protocolParamsShelleyBased | ||
(error "Conway currently pretending to be Alonzo", error "Conway currently pretending to be Alonzo") |
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 Unresolving this, just to double-check it again.
ouroboros-consensus-cardano/src/Ouroboros/Consensus/Cardano/Node.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Node/Protocol/Cardano.hs
Outdated
Show resolved
Hide resolved
634ea6c
to
93c9adc
Compare
0c4fdc4
to
2a0eae7
Compare
@@ -468,7 +522,8 @@ instance CardanoHardForkConstraints c | |||
[ (NodeToNodeV_7, CardanoNodeToNodeVersion5) | |||
, (NodeToNodeV_8, CardanoNodeToNodeVersion5) | |||
, (NodeToNodeV_9, CardanoNodeToNodeVersion6) | |||
, (NodeToNodeV_10, CardanoNodeToNodeVersion6) | |||
, (NodeToNodeV_10, CardanoNodeToNodeVersion7) | |||
, (NodeToNodeV_11, CardanoNodeToNodeVersion7) -- TODO: check this! |
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 the -- TODO: check this!
can be removed -- this mapping looks correct to me: V11 enables Conway.
... But the tuple above should stay as (NodeToNodeV_10, CardanoNodeToNodeVersion6)
, right?
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 so, but I'll confirm with @coot
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.
Yes, let's not modify what NodeToNodeV_10
(it will be released in 1.35.5
).
We also introduce NodeToNodeV_11
in #4019 - just to note that there will be a conflict on one side or the other.
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 just Approved this PR; this comment is the only one that wasn't Resolved. I'll let @dnadales resolve it, just to make sure he has seen Marcin's warning.
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.
When adding new NodeToNodeVersion
(and NodeToClientVersion
), I'd expect also a modifiction of this instance.
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 would Approve this PR if I could. I can't because I opened it. But @dnadales owns it now.
I hate to add another speedbump here, but: if we rebase this PR we should also add a (very celebratory!) |
f815633
to
335bd29
Compare
ouroboros-consensus-cardano-tools/src/Cardano/Node/Protocol/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Node/Protocol/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Node/Protocol/Cardano.hs
Outdated
Show resolved
Hide resolved
ouroboros-consensus-cardano-tools/src/Cardano/Tools/DBAnalyser/Block/Cardano.hs
Outdated
Show resolved
Hide resolved
- cardano-test: update golden tests for Conway. - Bump maxMajorProtVer to Conway's version. - Comment on why certain eras do not need genesis data. - Remove instructions to update `ShelleyBasedEras` since this is no. longer defined. We have a `ShelleyBasedEra` symbol, but that refers to a type class. - Refer to the PR that adds Conway in 'AddingAnEra.md' - Update out of date haddock for 'ProtocolTransitionParamsShelleyBased' and add a FIXME that should be addressed before this PR is merged. - Remove reference to non-existing data structure. I do not know if we should mention 'ProtocolTransitionParamsShelleyBased' here instead. - Update the `ProtocolCardano` type synonym - Extend changelog with entry describing the Conway era addition - Add a `PerEraAnalysis` for Conway to `db-analyser`.
49da2d6
to
903bcc6
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.
LGTM
bors r+ |
Timed out. |
bors r+ |
Fixes #3962. Integrates the Conway era.
Checklist
interface-CHANGELOG.md
interface-CHANGELOG.md