Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2370: Introduce QueryHardFork r=mrBliss a=mrBliss Fixes #2365. * Introduce `QueryHardFork` for queries specific to the hard fork combinator, unrelated to any specific era. Provide a query to ask for an `Interpreter`, which can convert a slot to an epoch or time, etc. * Generalise `QueryAnytime` so that the first era can also be queried. We still require there to be more than one era. Add the `QueryAnytimeByron` pattern synonym. * Rename the `EraStart` constructor of `QueryAnytime` to `GetEraStart` for consistency. * Change the encoding format of hard fork queries. Since they are not part of the final Shelley release yet (right?!), this is fine. Co-authored-by: Thomas Winant <thomas@well-typed.com>
- Loading branch information
Showing
22 changed files
with
468 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+5 Bytes
ouroboros-consensus-cardano/test/golden/CardanoNodeToClientVersion1/Result_AnytimeByron
Binary file not shown.
Binary file added
BIN
+71 Bytes
ouroboros-consensus-cardano/test/golden/CardanoNodeToClientVersion1/Result_HardFork
Binary file not shown.
Binary file added
BIN
+5 Bytes
ouroboros-consensus-cardano/test/golden/CardanoNodeToClientVersion2/Result_AnytimeByron
Binary file not shown.
Binary file added
BIN
+71 Bytes
ouroboros-consensus-cardano/test/golden/CardanoNodeToClientVersion2/Result_HardFork
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.