Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ouroboros-consensus-shelley: treat TranslationContext properly
Alonzo is the first era with a `TranslationContext` that is not `()`. Therefore, this commit must pipe through the `TranslationContext` through to the calls to `translateEra`. In particular, some of this are in classes used by the HFC in which the only era-specific input is the `LedgerConfig`. For that reason, we're adding `TranslationContext` to `ShelleyLedgerConfig`. It's possible we should instead alter the HFC to carry something in addition to/instead of the `LedgerConfig`, but we're taking the direct path for now. By adding a field to the `ShelleyLedgerConfig` we take on the burden of providing that `TranslationConfig` in every interface and/or test function that creates a Shelley protocol info etc. This is noisy but simple, since all eras before `AlonzoEra` just use `()` for their context.
- Loading branch information
Showing
12 changed files
with
133 additions
and
79 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
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.