Make hashing algorithm more robust #8

Open
opened 2025-04-07 12:48:27 +00:00 by King_DuckZ · 0 comments
Owner

Current hash verification in main.cpp is hacky and generally untidy. First of all that should become a bit cleaner. The main problem in terms of functionality is that it relies on the actual file size or even on each file existing in order to progress its chunk verification. Torrents with missing files will fail completely, instead it should use the size as provided by the torrent file and advance by as much for any missing chunk.

Current hash verification in main.cpp is hacky and generally untidy. First of all that should become a bit cleaner. The main problem in terms of functionality is that it relies on the actual file size or even on each file existing in order to progress its chunk verification. Torrents with missing files will fail completely, instead it should use the size as provided by the torrent file and advance by as much for any missing chunk.
Sign in to join this conversation.
No labels
bug
enhancement
licence
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: King_DuckZ/ducktorrent#8
No description provided.