skip unneccessary parse

This commit is contained in:
Dan Laine 2020-06-19 16:33:33 -04:00
parent 245f13ea65
commit 7c05353d3d
1 changed files with 1 additions and 1 deletions

View File

@ -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})