FluffyLabs / FluffyLabs/typeberry

Handle abort more gracefully in AnanasInterpreter

Open
#734 0 comments 0 reactions 0 assignees View on GitHub
M-execution
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.