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

Extrinsics resume_program and program destruction #652

Closed
gshep opened this issue Feb 11, 2022 · 1 comment · Fixed by #691
Closed

Extrinsics resume_program and program destruction #652

gshep opened this issue Feb 11, 2022 · 1 comment · Fixed by #691
Assignees
Labels
C1-feature Feature request D1-core Gear Core D2-node Gear Node

Comments

@gshep
Copy link
Member

gshep commented Feb 11, 2022

Problem to Solve

Allow users to stop the execution of a program but keep its ID and hash of the state. So program goes to the temporary storage and takes less space on-chain.

Second feature is to restore program from such kind of storage. Caller has to provide memory-pages (state) and enough value to continue program execution.

Possible Solution

API in common crate + tests. On node side there will be two extrinsics using this API.

Notes

after #453

@gshep gshep added D2-node Gear Node C1-feature Feature request labels Feb 11, 2022
@gshep gshep self-assigned this Feb 11, 2022
@gshep gshep added the D1-core Gear Core label Feb 11, 2022
@gshep gshep changed the title Extrinsics make_program_exit and restore_program Extrinsics pause_program and resume_program Feb 11, 2022
@NikVolf
Copy link
Member

NikVolf commented Feb 16, 2022

Transaction needed only for "resume"

Programs got destroyed automatically when they have no resources to continue operating and restored by someone who provide resources and state

@gshep gshep changed the title Extrinsics pause_program and resume_program Extrinsics resume_program and program destruction Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C1-feature Feature request D1-core Gear Core D2-node Gear Node
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants