Skip to content

Commit

Permalink
update types/part_set.go
Browse files Browse the repository at this point in the history
  • Loading branch information
mansub-song committed Jul 3, 2023
1 parent 4127ae7 commit d1b2bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/part_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ type PartSet struct {
// The data bytes are split into "partSize" chunks, and merkle tree computed.
// CONTRACT: partSize is greater than zero.
func NewPartSetFromData(data []byte, partSize uint32) *PartSet {
// divide data into 4kb parts.
// divide data into parts of size `partSize`
total := (uint32(len(data)) + partSize - 1) / partSize
parts := make([]*Part, total)
partsBytes := make([][]byte, total)
Expand Down

0 comments on commit d1b2bee

Please sign in to comment.