MCPcopy Create free account
hub / github.com/argumentcomputer/ix / addr

Function addr

crates/kernel/src/shard.rs:2022–2024  ·  view source on GitHub ↗
(byte: u8)

Source from the content-addressed store, hash-verified

2020
2021/// Predicted peak prover RAM (GiB) for a leaf of `cost` **actual** guest cost
2022/// units (for predicted cost, multiply by [`COST_MODEL_HEADROOM`] first to
2023/// get the worst-case bound the cap enforces).
2024pub fn ram_gib_for_steps(cost: u64) -> f64 {
2025 RAM_BASE_GIB + RAM_GIB_PER_BCOST * (cost as f64 / 1e9)
2026}
2027

Calls

no outgoing calls