Skip to content

Commit 0afb987

Browse files
committed
Fix comment
1 parent dbcb0d0 commit 0afb987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

operator/mina/lib/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub extern "C" fn verify_mina_state_ffi(
4747
}
4848
};
4949

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

0 commit comments

Comments
 (0)