Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CasObject validation with updated tests #21

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Conversation

rajatarya
Copy link
Collaborator

  • also added Copy trait to HexMerkleHash struct

- also added Copy trait to HexMerkleHash struct
Comment on lines 559 to 563
if idx == 0 && c.start_byte_index != 0 {
// for 1st chunk verify that its start_byte_index is 0
warn!("XORB Validation: Byte 0 does not contain 1st chunk.");
return Ok(false);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we move this outside the loop to check the 1 value?

@rajatarya rajatarya merged commit dcd20e2 into main Sep 24, 2024
1 check passed
@rajatarya rajatarya deleted the cas_object_validation branch September 24, 2024 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants