Expand description
Block apply driver.
For each event in a block:
- Publish the event’s
payloadas aCap::Datablob in σ’s cache viaput_cap(&Cap::data_inline(...)). - CoW-promote the chain’s root cnode and rebind slot[0] to the payload’s CapHash; settle to a fresh cnode hash.
- Republish the chain InstanceCap with the new root cnode hash; the chain instance’s hash updates monotonically per event.
- Drive
Vm::invoke_cached(&mut σ.caps, chain_instance_hash, ...). - Translate
CallResult→EventOutcome. Post-HALT, the call’spost_instance_hashbecomes the newchain_instance_hash.
Structs§
- Block
- A block: an ordered sequence of events the chain applies in turn.
- Event
- One on-chain event in a block.
Enums§
- Event
Outcome - Outcome of one event apply.
Functions§
- apply_
block - Apply a whole block.
- apply_
event - Apply one event against the chain Instance. Mutates
state.capsand advanceschain_instance_hashto a fresh value reflecting the post-call state.