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

Function node

crates/kernel/src/shard.rs:2412–2414  ·  view source on GitHub ↗
(l: AggNode, r: AggNode)

Source from the content-addressed store, hash-verified

2410/// system RAM by default).
2411pub const RAM_USABLE_FRAC: f64 = 0.85;
2412
2413/// Predicted peak prover RAM (GiB) for a leaf of `cost` **actual** guest cost
2414/// units (for predicted cost, multiply by [`COST_MODEL_HEADROOM`] first to
2415/// get the worst-case bound the cap enforces).
2416pub fn ram_gib_for_steps(cost: u64) -> f64 {
2417 RAM_BASE_GIB + RAM_GIB_PER_BCOST * (cost as f64 / 1e9)

Calls

no outgoing calls

Tested by 3