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

ErrorPolicy: include block-specific exceptions #1738

Merged
merged 2 commits into from
Mar 3, 2020

Conversation

mrBliss
Copy link
Contributor

@mrBliss mrBliss commented Mar 3, 2020

Fixes #1553.

  • Generalise nodeToExitReason to nodeExceptionIsFatal: it returns Maybe ExitReason, stating whether the exception is fatal or not, and if so, why.

  • In the consensusErrorPolicy, shut down the node in case nodeExceptionIsFatal says some exception is fatal.

  • Add missing (non-block-specific) SystemClockMovedBackException to the policy.

mrBliss added 2 commits March 3, 2020 12:02
* Generalise `nodeToExitReason` to `nodeExceptionIsFatal`: it returns `Maybe
  ExitReason`, stating whether the exception is fatal or not, and if so, why.

* In the `consensusErrorPolicy`, shut down the node in case
  `nodeExceptionIsFatal` says some exception is fatal.
@mrBliss mrBliss added the consensus issues related to ouroboros-consensus label Mar 3, 2020
@mrBliss mrBliss requested a review from edsko March 3, 2020 11:04
Copy link
Contributor

@edsko edsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@mrBliss
Copy link
Contributor Author

mrBliss commented Mar 3, 2020

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Mar 3, 2020

@iohk-bors iohk-bors bot merged commit 83cf065 into master Mar 3, 2020
@iohk-bors iohk-bors bot deleted the mrBliss/error-policy-fatal-exceptions branch March 3, 2020 11:45
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.

Exhaustively list fatal exceptions in the error policy
2 participants