Skip to content

Conversation

@ImTei
Copy link
Collaborator

@ImTei ImTei commented Apr 16, 2024

Description

There is a difference between Asterisc and Cannon when they face unsupported syscalls.

  • Asterisc: Raise an error (unrecognized syscall)
  • Cannon: Just return 0 (no-op)

Because of this difference, I had to ignore syscalls explicitly to run op-program(#16).
But as op-program is updated after the PR, I found more syscalls used by op-program, which are not handled by Asterisc.

I think this behavior has a potential risk: we may have to update VM contract if we encounter new syscalls as op-program is updated. So I updated the default behavior of handling syscalls to no-op like Cannon.

@ImTei ImTei requested a review from pcw109550 April 16, 2024 21:12
@ImTei ImTei added this pull request to the merge queue Apr 16, 2024
Merged via the queue into master with commit c2fab09 Apr 16, 2024
@pcw109550 pcw109550 mentioned this pull request Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants