Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xqft committed Sep 2, 2024
1 parent dbcb0d0 commit 0afb987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operator/mina/lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub extern "C" fn verify_mina_state_ffi(
}
};

// TODO(xqft): this can also be a batcher's pre-verification check
// Checks the integrity of the public inputs, also checks if the states form a chain.
let (candidate_tip_state, bridge_tip_state, candidate_tip_state_hash) =
match check_pub_inputs(&proof, &pub_inputs) {
Ok(validated_data) => validated_data,
Expand Down Expand Up @@ -98,7 +98,7 @@ fn check_pub_inputs(
.map(|state| state.hash())
.ok_or("failed to retrieve root state hash".to_string())?;
// Reconstructs the state hashes if the states form a chain, and compares them to the public
// input state hashes.
// input state hashes. Does not compare the tip state hash.
let mut state_hash = candidate_root_state_hash;
for (body_hash, expected_prev_state_hash) in proof
.candidate_chain_states
Expand Down

0 comments on commit 0afb987

Please sign in to comment.