(byte: u8)
| 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). |
| 2024 | pub fn ram_gib_for_steps(cost: u64) -> f64 { |
| 2025 | RAM_BASE_GIB + RAM_GIB_PER_BCOST * (cost as f64 / 1e9) |
| 2026 | } |
| 2027 |
no outgoing calls