Struct ckb_script::TransactionSnapshot [−][src]
pub struct TransactionSnapshot {
pub current: (ScriptGroupType, Byte32),
pub remain: Vec<(ScriptGroupType, Byte32)>,
pub snap: Option<Snapshot>,
pub current_cycles: Cycle,
pub limit_cycles: Cycle,
}
Expand description
Struct specifies which script has verified so far. Snapshot is lifetime free, but capture snapshot need heavy memory copy
Fields
current: (ScriptGroupType, Byte32)
current suspended script
remain: Vec<(ScriptGroupType, Byte32)>
remain script groups to verify
snap: Option<Snapshot>
vm snapshot
current_cycles: Cycle
current consumed cycle
limit_cycles: Cycle
limit cycles when snapshot create