Skip to content

Commit 8586d1d

Browse files
committed
Improve comment
1 parent 48821b6 commit 8586d1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/validator/src/block_validation

crates/validator/src/block_validation/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ pub async fn validate_block(
9393
chain_tip
9494
};
9595

96-
// Previous block commitment must match the chain tip's commitment.
96+
// The proposed block's parent must match the block that the Validator has determined is its
97+
// parent (either chain tip or parent of chain tip).
9798
if proposed_header.prev_block_commitment() != prev.commitment() {
9899
return Err(BlockValidationError::PrevBlockCommitmentMismatch);
99100
}

0 commit comments

Comments
 (0)