aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-06-26 17:21:11 +0800
committerGitHub <noreply@github.com>2017-06-26 17:21:11 +0800
commitfdf2184b1ecc48c6f2e106dd8cff85ec1765e998 (patch)
treeaf10624e7999af471facb60fcf1d00686f1e81da
parent3c7338d6c86cee5769d16c49bba3ef57b722e971 (diff)
parentcaa00b7e6d0dcb0429ef83ae993a2656abde9b60 (diff)
downloadgo-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar
go-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.gz
go-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.bz2
go-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.lz
go-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.xz
go-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.tar.zst
go-tangerine-fdf2184b1ecc48c6f2e106dd8cff85ec1765e998.zip
Merge pull request #14697 from homotopycolimit/master
swarm/storage: remove panic on invalid chunk
-rw-r--r--swarm/storage/dbstore.go2
1 files changed, 1 insertions, 1 deletions
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{