IntersectMBO / IntersectMBO/ouroboros-consensus

Catch pure exceptions thrown by the ledger

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

Description

If the ledger-side implementation of a pure ledger method (e.g., `applyLedgerBlock`) throws a pure exception (e.g., `Map.!: given key is not an element in the map`), we should catch it instead of crashing the node (or letting the `ErrorPolicy` handle it).

Such a protective boundary should be put into place in the ChainDB.

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.