//
and comment text189}
190
191func BenchmarkSquareRootOldWay(b *testing.B) {
192 //Start with 700K validators' effective balance193 val := uint64(22400000000000000)
194 for i := 0; i < b.N; i++ {
195 sqr := math.IntegerSquareRoot(val)
//
and comment text178}
179
180func BenchmarkSquareRootBabylonian(b *testing.B) {
181 //Start with 700K validators' effective balance182 val := uint64(22400000000000000)
183 for i := 0; i < b.N; i++ {
184 sqr := math.CachedSquareRoot(val)
//
and comment text242 EpochsPerSyncCommitteePeriod: 256,
243
244 // Updated penalty values.
245 InactivityPenaltyQuotientAltair: 3 * 1 << 24, //50331648246 MinSlashingPenaltyQuotientAltair: 64,
247 ProportionalSlashingMultiplierAltair: 2,
248 MinSlashingPenaltyQuotientBellatrix: 32,
//
and comment text 419// Test basic functionality of ActiveValidatorIndices without caching. This test will need to be
420// rewritten when releasing some cache flag.
421func TestActiveValidatorIndices(t *testing.T) {
422 //farFutureEpoch := params.BeaconConfig().FarFutureEpoch 423 type args struct {
424 state *ethpb.BeaconState
425 epoch primitives.Epoch
//
and comment text54 err = ConfigurePersistentLogging(fmt.Sprintf("%s/%s/%s/%s", testParentDir, existingDirectory, nonExistingSubDirectory, logFileName))
55 require.NoError(t, err)
56
57 //4. Create log file in a directory without 700 permissions58 existingDirectory = "test-4-existing-testing-dir"
59 err = os.Mkdir(fmt.Sprintf("%s/%s", testParentDir, existingDirectory), 0750)
60 if err != nil {
Comments should have a space between the //
and the comment text
//This is a comment
// This is a comment