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

Fix: properly check fingerprint #358

Merged
merged 6 commits into from
Feb 14, 2025
Merged

Fix: properly check fingerprint #358

merged 6 commits into from
Feb 14, 2025

Conversation

links234
Copy link
Contributor

@links234 links234 commented Feb 7, 2025

This PR fixes issue #22.

@santikaplan santikaplan requested a review from ffarall February 11, 2025 13:23
Copy link
Contributor

@ffarall ffarall left a comment

Choose a reason for hiding this comment

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

Great job!

"Fingerprint mismatch for file {:?}. Expected: {:?}, got: {:?}",
file_key, expected_fingerprint, event.file_key_proof.file_metadata.fingerprint
);
return Err(anyhow!("Fingerprint mismatch"));
Copy link
Contributor

Choose a reason for hiding this comment

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

From what I see, in cases like this where we return error from handle_remote_upload_request_event, we don't unvolunteer from the file. Should we? Honestly, right now we're lowering the user's reputation, eventually blocking it as a peer. Which is not that bad imo.

@ffarall ffarall merged commit dc39c05 into main Feb 14, 2025
25 checks passed
@ffarall ffarall deleted the fix/fingerprint-check branch February 14, 2025 20:44
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.

3 participants