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

Add gr_wait syscall #75

Closed
shamilsan opened this issue Aug 4, 2021 · 0 comments · Fixed by #84
Closed

Add gr_wait syscall #75

shamilsan opened this issue Aug 4, 2021 · 0 comments · Fixed by #84
Assignees
Labels
A1-inprogress Issue is in progress or PR draft is not ready to be reviewed C1-feature Feature request D3-gstd Gear Standard Library

Comments

@shamilsan
Copy link
Contributor

Problem to Solve

The smart contract should have the possibility to break execution and reschedule the original message processing.

Possible Solution

Add gr_wait() syscall that should:

  • Break the current smart contract execution with a custom trap (or something similar).
  • Push back the original message to the end of the queue.
  • Take into account the gas spent by program and update gas limit (or add gas spent field).
@shamilsan shamilsan added D3-gstd Gear Standard Library C1-feature Feature request labels Aug 4, 2021
@shamilsan shamilsan self-assigned this Aug 4, 2021
@shamilsan shamilsan added the A1-inprogress Issue is in progress or PR draft is not ready to be reviewed label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A1-inprogress Issue is in progress or PR draft is not ready to be reviewed C1-feature Feature request D3-gstd Gear Standard Library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant