Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move nodeBlockMatchesHeader and nodeHeaderIsEBB to GetHeader #2158

Merged
merged 1 commit into from
May 28, 2020

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented May 27, 2020

This is another step in the direction of emptying the RunNode sin bin.
Moreover, the hard-fork combinator can now provide straightforward
implementations for these methods.

@mrBliss mrBliss added the consensus issues related to ouroboros-consensus label May 27, 2020
@mrBliss mrBliss requested a review from edsko May 27, 2020 16:27
@mrBliss
Copy link
Contributor Author

mrBliss commented May 27, 2020

TODO: create a proper, strict type for Maybe EpochNo and use that wherever possible. Note that Byron's TipInfo contains IsEBB, so if we add EpochNo to that type, we break backwards-compatibility of the header state, requiring a replay of the ledger from scratch.

UPDATE: let's do that later. Such a refactoring would be good, but it doesn't benefit the hard fork combinator.

@mrBliss mrBliss marked this pull request as ready for review May 28, 2020 09:06
This is another step in the direction of emptying the `RunNode` sin bin.
Moreover, the hard-fork combinator can now provide straightforward
implementations for these methods.
@mrBliss
Copy link
Contributor Author

mrBliss commented May 28, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 28, 2020

@iohk-bors iohk-bors bot merged commit 7700288 into master May 28, 2020
@iohk-bors iohk-bors bot deleted the mrBliss/getHeader branch May 28, 2020 10:37
coot pushed a commit that referenced this pull request May 16, 2022
2158: Move nodeBlockMatchesHeader and nodeHeaderIsEBB to GetHeader r=mrBliss a=mrBliss

This is another step in the direction of emptying the `RunNode` sin bin.
Moreover, the hard-fork combinator can now provide straightforward
implementations for these methods.

Co-authored-by: Thomas Winant <thomas@well-typed.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus issues related to ouroboros-consensus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants