style fix

This commit is contained in:
Dan Laine 2020-06-17 20:41:02 -04:00
parent f0cd642c2d
commit 15898c4ac2
1 changed files with 2 additions and 3 deletions

View File

@ -165,10 +165,9 @@ func (b *bootstrapper) process(vtx avalanche.Vertex) error {
} }
} }
for _, parent := range vtx.Parents() { for _, parent := range vtx.Parents() {
if _, ok := b.processedCache.Get(parent.ID()); ok { // already processed this if _, ok := b.processedCache.Get(parent.ID()); !ok { // already processed this
continue toProcess.Push(parent)
} }
toProcess.Push(parent)
} }
b.processedCache.Put(vtx.ID(), nil) b.processedCache.Put(vtx.ID(), nil)
} }