prysm-pulse/validator/params/config_test.go

14 lines
311 B
Go
Raw Normal View History

package params
import (
2018-08-13 21:04:03 +00:00
"math"
"testing"
)
func TestAttesterCommitteeSize(t *testing.T) {
c := DefaultConfig()
2018-08-13 21:04:03 +00:00
if c.CollationSizeLimit != int64(math.Pow(float64(2), float64(20))) {
t.Errorf("Shard count incorrect. Wanted %d, got %d", int64(math.Pow(float64(2), float64(20))), c.CollationSizeLimit)
}
}