Closed zltl closed 6 years ago
if blockSize = 2, blockPayloadStart should be 0, 2, 4, 6 ... but your formulation: blockPayloadStart = currSeq*uint32(blockSize) + (currSeq * 1) will generate 0, 3, 6 ...
blockPayloadStart = currSeq*uint32(blockSize) + (currSeq * 1)
set file examples/block1/ietf-block.htm to 3m, then run the test, you will get a panic due to this error.
if blockSize = 2, blockPayloadStart should be 0, 2, 4, 6 ... but your formulation:
blockPayloadStart = currSeq*uint32(blockSize) + (currSeq * 1)
will generate 0, 3, 6 ...