Skip to content

Commit fdf2184

Browse files
authored
Merge pull request ethereum#14697 from homotopycolimit/master
swarm/storage: remove panic on invalid chunk
2 parents 3c7338d + caa00b7 commit fdf2184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swarm/storage/dbstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ func (s *DbStore) Get(key Key) (chunk *Chunk, err error) {
399399
hash := hasher.Sum(nil)
400400
if !bytes.Equal(hash, key) {
401401
s.delete(index.Idx, getIndexKey(key))
402-
panic("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
402+
log.Warn("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
403403
}
404404

405405
chunk = &Chunk{

0 commit comments

Comments
 (0)