Skip to main content

step_noting

Function step_noting 

Source
pub fn step_noting<P: Protocol + ?Sized>(
    p: &mut P,
    event: ProtoEvent<P>,
    now: Time,
    rng: &mut dyn RngCore,
    store: &mut dyn Store<P::Meta, P::Entry>,
    next_timer: &mut u64,
    notes: &mut dyn NoteSink<P::Note>,
) -> Vec<ProtoEffect<P>> ⓘ
Expand description

step_with, collecting what the protocol narrates as well as what it emitted.

The two are returned separately here because a caller stepping a protocol by hand has no trace to interleave them into. Under the simulator they land in one account, in order, which is what lets a claim be checked against what happened.