-
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Files with no content should have no piece root.
WHen checking the hash of piece 0, we should skip past files with a length of 0. This is important as if the file is smaller than PieceLength in size, the 'PieceRoot' of the file is used instead of the piece hashes, and so we need to ensure we pick the pieces root from the file which has the actual content.
- Loading branch information
1 parent
bec6559
commit 82160bf
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters