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

Revert "ImmutableDB: truncate blocks from the future" #1908

Merged

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented Apr 6, 2020

This reverts commit 81f2f1e.

See IntersectMBO/ouroboros-consensus#702, we first have to open the ImmutableDB /with/ all blocks because we
don't know yet in which slot we are. We need the ImmutableDB to obtain a
ledger state which will tell us which slot we're in. Afterwards, we can
truncate the future blocks from the ImmutableDB. This last step will be done
by the ChainDB and will follow in a future PR.

This reverts commit 81f2f1e.

See #1773, we first have to open the ImmutableDB /with/ all blocks because we
don't know yet in which slot we are. We need the ImmutableDB to obtain a
ledger state which will tell us which slot we're in. Afterwards, we can
truncate the future blocks from the ImmutableDB. This last step will be done
by the ChainDB and will follow in a future PR.
@mrBliss mrBliss added the consensus issues related to ouroboros-consensus label Apr 6, 2020
@mrBliss mrBliss requested a review from edsko April 6, 2020 09:51
@mrBliss
Copy link
Contributor Author

mrBliss commented Apr 6, 2020

bors merge

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Apr 6, 2020

@iohk-bors iohk-bors bot merged commit bbf0011 into master Apr 6, 2020
@iohk-bors iohk-bors bot deleted the mrBliss/revert-immutabledb-truncate-future-blocks branch April 6, 2020 11:44
coot added a commit that referenced this pull request May 16, 2022
1908: Revert "ImmutableDB: truncate blocks from the future" r=mrBliss a=mrBliss

This reverts commit 81f2f1e.

See #1773, we first have to open the ImmutableDB /with/ all blocks because we
don't know yet in which slot we are. We need the ImmutableDB to obtain a
ledger state which will tell us which slot we're in. Afterwards, we can
truncate the future blocks from the ImmutableDB. This last step will be done
by the ChainDB and will follow in a future PR.

1909: Fix typos r=coot a=coot



Co-authored-by: Thomas Winant <[email protected]>
Co-authored-by: Marcin Szamotulski <[email protected]>
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.

2 participants