Skip to main content

replay_corpus_sequences

Function replay_corpus_sequences 

Source
fn replay_corpus_sequences<FEN: FoundryEvmNetwork>(
    sequences: &[&[BasicTxDetails]],
    executor: &Executor<FEN>,
    target: ReplayTarget<'_>,
    coverage: ReplayCoverage<'_>,
) -> Result<Vec<ReplayOutcome>>
Expand description

Replays persisted corpus sequences, executing each distinct prefix once.

Persisted entries often extend the same prefixes, for example the calls that led to a state snapshot, so replaying every entry from the initial state executes the shared calls once per entry. The sequences are merged into a prefix tree that is replayed depth first, and the state is cloned where sequences diverge. The outcomes are in input order and match replaying each sequence on its own clone of executor, except that coverage is merged in tree order.