IntersectMBO / IntersectMBO/ouroboros-consensus

Clarify relation between trivial HasHardForkHistory instance and NoHardForks

Open
#626 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.