From 7c05353d3d048d3a01eea52597c91611664bd095 Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Fri, 19 Jun 2020 16:33:33 -0400 Subject: [PATCH] skip unneccessary parse --- snow/engine/avalanche/bootstrapper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snow/engine/avalanche/bootstrapper.go b/snow/engine/avalanche/bootstrapper.go index 08ca7df..3ed58c7 100644 --- a/snow/engine/avalanche/bootstrapper.go +++ b/snow/engine/avalanche/bootstrapper.go @@ -230,7 +230,7 @@ func (b *bootstrapper) MultiPut(vdr ids.ShortID, requestID uint32, vtxs [][]byte processVertices := make([]avalanche.Vertex, 1, len(vtxs)) processVertices[0] = neededVtx - for _, vtxBytes := range vtxs { // Parse/persist all the vertices + for _, vtxBytes := range vtxs[1:] { // Parse/persist all the vertices if vtx, err := b.State.ParseVertex(vtxBytes); err != nil { // Persists the vtx b.BootstrapConfig.Context.Log.Debug("Failed to parse vertex: %w", err) b.BootstrapConfig.Context.Log.Verbo("vertex: %s", formatting.DumpBytes{Bytes: vtxBytes})