From 8b76cf601ef43f9c90c41997dfc123aa154bf59c Mon Sep 17 00:00:00 2001 From: Anil Dasari Date: Fri, 24 Apr 2020 14:54:24 -0700 Subject: [PATCH] replaced loop --- snow/engine/avalanche/bootstrapper.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snow/engine/avalanche/bootstrapper.go b/snow/engine/avalanche/bootstrapper.go index 7bacd46..0fd86a3 100644 --- a/snow/engine/avalanche/bootstrapper.go +++ b/snow/engine/avalanche/bootstrapper.go @@ -177,9 +177,7 @@ func (b *bootstrapper) storeVertex(vtx avalanche.Vertex) { } } - for _, parent := range vtx.Parents() { - vts = append(vts, parent) - } + vts = append(vts, vtx.Parents()...) case choices.Accepted: b.BootstrapConfig.Context.Log.Verbo("Bootstrapping confirmed %s", vtxID) case choices.Rejected: