mirror of https://github.com/poanetwork/gecko.git
skip unneccessary parse
This commit is contained in:
parent
245f13ea65
commit
7c05353d3d
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue