Skip to content
This repository was archived by the owner on Aug 3, 2026. It is now read-only.

Commit 3512e66

Browse files
committed
refactor(shasta): clarify input request key comment and adjust input handling in Shasta proposal processing
- Updated comment in `create_shasta_requests` to specify that the prover is not included in the input request key. - Changed variable from immutable to mutable in `do_prove_shasta_proposal` to allow overriding the actual prover in cached guest input.
1 parent 21b4972 commit 3512e66

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

host/src/server/api/v3/proof/batch/shasta.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn create_shasta_requests(
2424
l2_block_numbers,
2525
last_anchor_block_number,
2626
} = proposal;
27-
// Create Shasta input request key
27+
// Create Shasta input request key (prover not in key; we override when passing to prover backend)
2828
let input_request_key = RequestKey::ShastaGuestInput(ShastaInputRequestKey::new(
2929
*proposal_id, // proposal_id
3030
batch_request.l1_network.clone(),

reqactor/src/backend.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ pub async fn do_prove_shasta_proposal(
607607
.await
608608
.map_err(|err| format!("failed to create raiko: {err:?}"))?;
609609

610-
let input = if let Some(shasta_guest_input) =
610+
let mut input = if let Some(shasta_guest_input) =
611611
raiko.request.prover_args.get(PROVER_ARG_SHASTA_GUEST_INPUT)
612612
{
613613
decode_guest_input_from_prover_arg_value(shasta_guest_input)?
@@ -618,6 +618,9 @@ pub async fn do_prove_shasta_proposal(
618618
.map_err(|err| format!("failed to generate shasta guest input: {err:?}"))?
619619
};
620620

621+
// Override prover so cached guest input (shared across provers) uses the requesting prover
622+
input.taiko.prover_data.actual_prover = *request_entity.guest_input_entity().actual_prover();
623+
621624
// Generate the output for the batch
622625
let output = raiko
623626
.get_batch_output(&input)

0 commit comments

Comments
 (0)