mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/storage: bug fix
This commit is contained in:
parent
2f90b4db8b
commit
461d16903f
1 changed files with 1 additions and 1 deletions
|
|
@ -978,7 +978,7 @@ func (s *LDBStore) Has(_ context.Context, addr Address) bool {
|
|||
ikey := getIndexKey(addr)
|
||||
_, err := s.db.Get(ikey)
|
||||
|
||||
return err != nil
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// TODO: To conform with other private methods of this object indices should not be updated
|
||||
|
|
|
|||
Loading…
Reference in a new issue