diff --git a/blockservice/blockservice.go b/blockservice/blockservice.go index d05a01355..e109b85fe 100644 --- a/blockservice/blockservice.go +++ b/blockservice/blockservice.go @@ -112,10 +112,9 @@ func (s *blockService) AddBlocks(bs []blocks.Block) ([]*cid.Cid, error) { if err != nil { return nil, err } - if has { - continue + if !has { + toput = append(toput, b) } - toput = append(toput, b) } } else { toput = bs