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

Pass only BlockConfig to nodeStartTime/NetworkMagic/ProtocolMagicId #2151

Merged
merged 1 commit into from
May 26, 2020

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented May 26, 2020

None of the implementations ever needed more than the BlockConfig. So
replace TopLevelConfig with BlockConfig in those methods.

This makes it easier to define those methods for a non-degenerate hard-fork,
where we can't always project out an era-specific TopLevelConfig from the
hard-fork one, because of the partial configs. We can trivially project out
the era-specific BlockConfigs, though.

@mrBliss mrBliss added the consensus issues related to ouroboros-consensus label May 26, 2020
@mrBliss mrBliss requested a review from edsko May 26, 2020 11:31
None of the implementations ever needed more than the `BlockConfig`. So
replace `TopLevelConfig` with `BlockConfig` in those methods.

This makes it easier to define those methods for a non-degenerate hard-fork,
where we can't always project out an era-specific `TopLevelConfig` from the
hard-fork one, because of the partial configs. We can trivially project out
the era-specific `BlockConfig`s, though.
@mrBliss
Copy link
Contributor Author

mrBliss commented May 26, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented May 26, 2020

@iohk-bors iohk-bors bot merged commit 22f59df into master May 26, 2020
@iohk-bors iohk-bors bot deleted the mrBliss/node-blockconfig branch May 26, 2020 12:24
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