pub enum Status {
Normal = 0,
GasLimitExceeded = 1,
}
Expand description
Lazy-pages status.
By default in program initialization status is set as Normal.
If nothing bad happens in lazy-pages, then status remains to be Normal.
If gas limit exceed, then status is set as GasLimitExceeded, and lazy-pages
starts to skips all signals processing until the end of execution.
The same is for gas allowance exceed, except it sets status as GasAllowanceExceed.
In the end of execution this status is checked and if it’s not Normal then
termination reason sets as gas limit exceeded or gas allowance exceeded, depending on status.
NOTE: repr(i64) is important to be able add additional fields, without old runtimes separate support logic.