FluffyLabs / FluffyLabs/typeberry
Handle abort more gracefully in AnanasInterpreter
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Context
Related to PR #716 and discussion: https://github.com/FluffyLabs/typeberry/pull/716#discussion_r2448597782
Requested by: @DrEverr
Raised by: @tomusdrw
## Issue
Currently, the abort handler in `AnanasInterpreter` simply throws an error when abort is called from WASM. This might not be the most graceful way to handle this situation.
## Suggestion
Consider storing an indication on the `AnanasInterpreter` object that the instance is bricked, so that subsequent calls to any of the methods will fail in a more controlled manner.
## References
- PR: https://github.com/FluffyLabs/typeberry/pull/716
- Comment: https://github.com/FluffyLabs/typeberry/pull/716#discussion_r2448597782
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.