swarm/network, swarm/storage: validate chunk size (#17397)
* swarm/network, swarm/storage: validate default chunk size * swarm/bmt, swarm/network, swarm/storage: update BMT hash initialisation * swarm/bmt: move segmentCount to tests * swarm/chunk: change chunk.DefaultSize to be untyped const * swarm/storage: add size validator * swarm/storage: add chunk size validation to localstore * swarm/storage: move validation from localstore to validator * swarm/storage: global chunk rules in MRU
This commit is contained in:
committed by
Balint Gabor
parent
8a040de60b
commit
97887d98da
5
swarm/chunk/chunk.go
Normal file
5
swarm/chunk/chunk.go
Normal file
@ -0,0 +1,5 @@
|
||||
package chunk
|
||||
|
||||
const (
|
||||
DefaultSize = 4096
|
||||
)
|
Reference in New Issue
Block a user