IntersectMBO / IntersectMBO/ouroboros-consensus
Immutable DB: Do "blocks in future" check _after_ ChainDB almost initialized
Open
- 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
Assessment
This issue has not been assessed yet.