diff options
Diffstat (limited to 'swarm/storage')
-rw-r--r-- | swarm/storage/types.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/swarm/storage/types.go b/swarm/storage/types.go index ada86831f..092843db0 100644 --- a/swarm/storage/types.go +++ b/swarm/storage/types.go @@ -244,11 +244,8 @@ func GenerateRandomChunk(dataSize int64) Chunk { } func GenerateRandomChunks(dataSize int64, count int) (chunks []Chunk) { - if dataSize > ch.DefaultSize { - dataSize = ch.DefaultSize - } for i := 0; i < count; i++ { - ch := GenerateRandomChunk(ch.DefaultSize) + ch := GenerateRandomChunk(dataSize) chunks = append(chunks, ch) } return chunks |