Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
SlotPoint
type to distinguish genesis from (SlotNo 0)
This commit partially addresses the issue where the DB layer historically did not distinguish between the genesis point and the block with SlotNo 0, which comes directly after genesis. * The types of `rollbackTo` and `listCheckpoints` can now distinguish these points. * For reasons of correctness, we need to use `SlotPoint` in the `Checkpoints` type. * However, the DB file format still uses slot numbers only. But as we want to revamp the format anyway, the plan is to keep it as it is for now, and remove the issue with the revamp.
- Loading branch information
1 parent
b53d2dc
commit 4ea79b3
Showing
14 changed files
with
304 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.