Skip to content

Commit

Permalink
Merge pull request ethereum#14697 from homotopycolimit/master
Browse files Browse the repository at this point in the history
swarm/storage: remove panic on invalid chunk
  • Loading branch information
karalabe authored Jun 26, 2017
2 parents 3c7338d + caa00b7 commit fdf2184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarm/storage/dbstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ func (s *DbStore) Get(key Key) (chunk *Chunk, err error) {
hash := hasher.Sum(nil)
if !bytes.Equal(hash, key) {
s.delete(index.Idx, getIndexKey(key))
panic("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
log.Warn("Invalid Chunk in Database. Please repair with command: 'swarm cleandb'")
}

chunk = &Chunk{
Expand Down

0 comments on commit fdf2184

Please sign in to comment.