Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Kim <[email protected]>
  • Loading branch information
joshua-kim committed Oct 17, 2023
1 parent e5c246f commit 2623133
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions snow/engine/avalanche/bootstrap/bootstrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,16 @@ func (b *bootstrapper) process(ctx context.Context, vtxs ...avalanche.Vertex) er
vtxHeightSet := set.Set[ids.ID]{}
prevHeight := uint64(0)

for toProcess.Len() > 0 {
for {
vtxID, vtx, ok := toProcess.Pop()
if !ok {
break
}

if b.Halted() {
return nil
}

vtxID, vtx, _ := toProcess.Pop()
switch vtx.Status() {
case choices.Unknown:
b.VtxBlocked.AddMissingID(vtxID)
Expand Down

0 comments on commit 2623133

Please sign in to comment.