pub struct TransactionState<'a> {
    pub current: usize,
    pub vm: Option<ResumableMachine<'a>>,
    pub current_cycles: Cycle,
    pub limit_cycles: Cycle,
    pub enable_backup_page_flags: bool,
    pub flags_tracing: Vec<(u64, u64)>,
}
Expand description

Struct specifies which script has verified so far. State lifetime bound with vm machine.

Fields

current: usize

current suspended script index

vm: Option<ResumableMachine<'a>>

vm state

current_cycles: Cycle

current consumed cycle

limit_cycles: Cycle

limit cycles

enable_backup_page_flags: bool

enable snapshot page dirty flags

flags_tracing: Vec<(u64, u64)>

tracing data as code page index

Implementations

Return next limit cycles according to max_cycles and step_cycles

Trait Implementations

Formats the value using the given formatter. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.