Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce queries about an era that can be answered in any era
Fixes #2346. * Split `HardForkQuery` up into: 1. `QueryIfCurrent`: queries about a certain era that only can be answered when the current ledger is in the respective era. 2. `QueryAnytime`: queries about a certain era that can be answered when the current ledger is in *any* era. No queries about the first era can be asked to keep the HFC with a single ledger isomorphic to just the ledger. An example query is `EraStart`, which returns the start epoch/time/slot of an era. * The pattern synonyms for `CardanoQuery` were renamed from `QueryByron` and `QueryShelley` to `QueryIfCurrentByron`, `QueryIfCurrentShelley`, and `QueryAnytimeShelley`.
- Loading branch information
Showing
12 changed files
with
440 additions
and
137 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
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.