The instruction says to break the piece into blocks of 16KB and send the blocks in each request message
I don’t quite understand what piece refers to here. It is the hash value or something else?
Hi @JavaIsNotHard, the file you want to download is divided into pieces, which in turn are divided into blocks—so each piece represents a part of the file.
Each piece is identified by an index. Our tester will specify which piece it wants your program to download:
Remember that your code already knows the piece length
. For example, if the piece length is 160KB, your code will need to request 10 blocks to download the entire piece.
Closing this thread due to inactivity. If you still need assistance, feel free to reopen or start a new discussion!
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.