MCPcopy Create free account
hub / github.com/base/base / execute_with_intermediates

Method execute_with_intermediates

crates/proof/client/src/driver.rs:87–95  ·  view source on GitHub ↗

Like [`execute`](Self::execute), but also collects per-block `(L2BlockInfo, output_root)` pairs for all intermediate blocks.

(
        self,
    )

Source from the content-addressed store, hash-verified

85 /// Like [`execute`](Self::execute), but also collects per-block `(L2BlockInfo, output_root)`
86 /// pairs for all intermediate blocks.
87 pub async fn execute_with_intermediates(
88 self,
89 ) -> Result<(Epilogue, Vec<(base_protocol::L2BlockInfo, B256)>), FaultProofProgramError> {
90 let mut intermediates = Vec::new();
91 let epilogue = self
92 .run_pipeline(|l2_info, output_root| intermediates.push((l2_info, output_root)))
93 .await?;
94 Ok((epilogue, intermediates))
95 }
96
97 async fn run_pipeline(
98 self,

Callers 1

proveMethod · 0.80

Calls 2

run_pipelineMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected