Skip to content

Commit

Permalink
Update hooks.go
Browse files Browse the repository at this point in the history
remove small set Vals
  • Loading branch information
jacklevin74 authored Jan 29, 2024
1 parent 33fa953 commit 057e248
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gossip/emitter/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ func (em *Emitter) OnNewEpoch(newValidators *pos.Validators, newEpoch idx.Epoch)
em.syncStatus.becameValidator = time.Now()
}

small_set:=isOdd(newEpoch)

if small_set {
newValidators = mutateValidators(newValidators)
}
//small_set:=isOdd(newEpoch)

//if small_set {
// newValidators = mutateValidators(newValidators)
//}
small_set:=false
fmt.Printf("Epoch: %v, small_set: %v vals: %v\n", newEpoch, small_set, newValidators.SortedIDs())

em.validators, em.epoch = newValidators, newEpoch
Expand Down

0 comments on commit 057e248

Please sign in to comment.