IntersectMBO / IntersectMBO/ouroboros-consensus
Clarify relation between trivial HasHardForkHistory instance and NoHardForks
Open
technical debt
- Dominant language
- Haskell
- Stars
- 67
- Forks
- 43
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 43
Description
~Remove it from `RunNode` and use `InFuture.miracle` when used with a single era/block.~
Let's introduce:
```haskell
trivialHardForkSummary :: NoHardForks blk => ..
```
And let `HasHardForkHistory` default (default instance or deriving via) to it when `NoHardForks blk` holds:
```haskell
hardForkSummary _ _ = trivialHardForkSummary
```
This is less ambitious than the first plan. `InFuture.reference` will still be used even for a single era/block.
Contributor guide
Assessment
This issue has not been assessed yet.