swarm/storage: simplify ChunkValidator interface (#18285)
This commit is contained in:
committed by
Anton Evangelatov
parent
ebbf3dfafb
commit
4e6f53ac33
@@ -92,7 +92,7 @@ func (ls *LocalStore) isValid(chunk Chunk) bool {
|
||||
// ls.Validators contains a list of one validator per chunk type.
|
||||
// if one validator succeeds, then the chunk is valid
|
||||
for _, v := range ls.Validators {
|
||||
if valid = v.Validate(chunk.Address(), chunk.Data()); valid {
|
||||
if valid = v.Validate(chunk); valid {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user