IntersectMBO / IntersectMBO/ouroboros-consensus

Immutable DB: Do "blocks in future" check _after_ ChainDB almost initialized

Open
#702 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
67
Forks
43
Avg merge
5d 13h
Merged PRs (30d)
43

Description

At the moment, the imm DB verifies that there are no blocks from the future as it walks over the chunk files. However, the translation from `SlotNo` to `UTCTime` is ledger dependent :roll_eyes: We should instead initialize the imm DB and ledger DB _first_, not checking time stamps, and only then check the tip of the imm DB. If that is ahead of the current time, we should _trim_ the imm DB and kill the node.

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.