From caa00b7e6d0dcb0429ef83ae993a2656abde9b60 Mon Sep 17 00:00:00 2001 From: aron Date: Sun, 25 Jun 2017 16:10:54 +0200 Subject: [PATCH] swarm/storage: remove panic on invalid chunk --- swarm/storage/dbstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/storage/dbstore.go b/swarm/storage/dbstore.go index 30925a919..31ff5b64e 100644 --- a/swarm/storage/dbstore.go +++ b/swarm/storage/dbstore.go @@ -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{