diff options
author | aron <homotopycolimit@users.noreply.github.com> | 2017-06-25 22:10:54 +0800 |
---|---|---|
committer | aron <homotopycolimit@users.noreply.github.com> | 2017-06-25 22:10:54 +0800 |
commit | caa00b7e6d0dcb0429ef83ae993a2656abde9b60 (patch) | |
tree | 7e5c2575fc66a4c96674e933f96536acb016614b /swarm/storage | |
parent | 78c04c920d07e65864f781fb5c6e5d77435d7aa0 (diff) | |
download | dexon-caa00b7e6d0dcb0429ef83ae993a2656abde9b60.tar.gz dexon-caa00b7e6d0dcb0429ef83ae993a2656abde9b60.tar.zst dexon-caa00b7e6d0dcb0429ef83ae993a2656abde9b60.zip |
swarm/storage: remove panic on invalid chunk
Diffstat (limited to 'swarm/storage')
-rw-r--r-- | swarm/storage/dbstore.go | 2 |
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{ |