-
Notifications
You must be signed in to change notification settings - Fork 105
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
feat(node): Pause programs after specific amount of blocks #2507
Conversation
Conflicts: common/src/event.rs pallets/gear-program/src/lib.rs pallets/gear/src/benchmarking/syscalls.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems program will be always paused after 1000 blocks. How to unpause it? Or what will unpause it?
Conflicts: gsdk/src/signer/calls.rs
[skip ci]
[skip ci]
@osipov-mit please take a look. In particular at |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥳
Resolves #2301 , #2570
GasBalanceOf
in pallet-gear;Release notes: this PR is the first one in the series of task for charging programs. It introduces pausing programs mechanism: uploaded on-chain programs have free period of rent during which they operate as usual. When the period finishes the program is paused: all its resources (memory pages, messages in wait list, etc) are removed from storage and the corresponding record added to the storage of paused programs for later ability to resume the program.
@gear-tech/dev