pub struct WalkStats {
pub unproven_txs: usize,
pub inputs_executed: usize,
pub script_bytes: usize,
pub hash_ops: usize,
pub sig_ops: usize,
pub work_bytes: u64,
pub memory_bytes: u64,
pub subject_judged: bool,
}Expand description
What the walk did (the door’s cost instrument, since Date.now() is
frozen during synchronous work on Workers and cannot time it).
Fields§
§unproven_txs: usizeUnproven transactions whose inputs were executed.
inputs_executed: usizeInputs executed (scripts run).
script_bytes: usizeUnlocking + locking script bytes executed.
hash_ops: usizeHash-class opcodes seen (SHA1/SHA256/HASH160/HASH256/RIPEMD160).
sig_ops: usizeSignature checks seen (CHECKSIG counts 1, CHECKMULTISIG counts its consensus maximum of 20).
work_bytes: u64The static work estimate charged against the budget.
memory_bytes: u64The memory estimate charged against the budget: the frame’s, made before the stream was opened, plus the largest charge of one walked input’s scripts, made before they were parsed.
subject_judged: boolWhether the SUBJECT’s own inputs were all executed (an ancestor may still have faulted afterwards).
Trait Implementations§
impl Copy for WalkStats
impl Eq for WalkStats
impl StructuralPartialEq for WalkStats
Auto Trait Implementations§
impl Freeze for WalkStats
impl RefUnwindSafe for WalkStats
impl Send for WalkStats
impl Sync for WalkStats
impl Unpin for WalkStats
impl UnsafeUnpin for WalkStats
impl UnwindSafe for WalkStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more