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

Function block_step_cost

crates/kernel/src/shard.rs:1643–1650  ·  view source on GitHub ↗

Predicted Zisk guest STEPS contributed by a single block (reduction + its own ingress). The per-shard floor and any cross-shard re-ingress are added at the shard level, not here.

(b: &BlockEntry)

Source from the content-addressed store, hash-verified

1641 manifest.summary(),
1642 prove_report(&profile, &plan.shard_of, &manifest, parallelism),
1643 plan.max_shard_steps,
1644 max_cycles,
1645 SHARD_COST_FLOOR,
1646 plan.largest_block_steps,
1647 note,
1648 ))
1649}
1650
1651/// Calibrated Zisk guest-COST model — the **single source of truth** for
1652/// predicting a block's in-circuit cost contribution, in **ziskemu cost
1653/// units** (`ziskemu -X` TOTAL: MAIN + OPCODES + MEMORY + PRECOMPILES +

Callers 4

from_profileMethod · 0.85
per_shard_stepsFunction · 0.85
partition_for_cycle_capFunction · 0.85
shard_predictedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected