Module cost_model

Source
Expand description

CKB VM cost model.

The cost model assign cycles to instructions.

Constants§

BYTES_PER_CYCLE
How many bytes can transfer when VM costs one cycle.

Functions§

transferred_byte_cycles
Calculates how many cycles spent to load the specified number of bytes.