Skip to content

Commit

Permalink
Merge branch 'rkhalil/derive-tx-exec' of github.com:risc0/zeth into r…
Browse files Browse the repository at this point in the history
…khalil/bonsai-composition
  • Loading branch information
hashcashier committed Jan 29, 2024
2 parents dd70e6d + b3b6b38 commit 9053a3e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions host/src/operations/rollups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ pub async fn derive_rollup_blocks(cli: Cli, file_reference: &String) -> anyhow::
block_image_id: OP_BLOCK_ID,
};
let factory_clone = op_builder_provider_factory.clone();
let mut derive_machine = tokio::task::spawn_blocking(move || {
DeriveMachine::new(&OPTIMISM_CHAIN_SPEC, derive_input, Some(factory_clone))
.context("Could not create derive machine")
})
.await??;
let (op_block_inputs, derive_machine, derive_output) = tokio::task::spawn_blocking(move || {
let mut derive_machine =
DeriveMachine::new(&OPTIMISM_CHAIN_SPEC, derive_input, Some(factory_clone))
.expect("Could not create derive machine");
let mut op_block_inputs = vec![];
let derive_output = derive_machine
.derive(Some(&mut op_block_inputs))
Expand Down

0 comments on commit 9053a3e

Please sign in to comment.