Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Highlights: * A bunch of Shelley types are now parameterised by the crypto instead of the era. This means the instantiation changes from `StandardShelley` to `StandardCrypto`. See IntersectMBO/ouroboros-network#2702 * Because of changes to the era parameterisation in the ledger, one should now use `ShelleyBasedEra` (from `Ouroboros.Consensus.Shelley.Eras`) as the constraint on `era` instead of `Era`. With the former you will be able to derive many more constraints. * Consensus supports a bunch of new queries: + `GetGenesisConfig`: return the (compacted) genesis config used by the node. + `DebugEpochState`: was previously called `GetCurrentEpochState`. + `DebugNewEpochState`: this contains slightly more information than the former `DebugEpochState`. NOTE: this is not currently used yet, but the goal is to use this when querying the ledger state. + `DebugChainDepState`: contains the epoch nonces, etc. + `GetCurrentEra`: use ```haskell eraIndexToInt :: EraIndex xs -> Int ``` on its result to get the current era as index starting from 0. Note that some of these queries require a new network version. You don't have to do anything for this. You will only notice this when submitting one of the new queries to an older node that doesn't support it; you'll get a `ShelleyEncoderUnsupportedQuery` exception. Better to get such an exception when submitting the unsupported query than getting no response at all because the receiver fails to decode the request. See IntersectMBO/ouroboros-network#2694 for more details.
- Loading branch information