prysm-pulse/beacon-chain/state/genesis/genesis_test.go
terence 5a66807989
Update to V5 (#13622)
* First take at updating everything to v5

* Patch gRPC gateway to use prysm v5

Fix patch

* Update go ssz

---------

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
2024-02-15 05:46:47 +00:00

33 lines
564 B
Go

package genesis_test
import (
"testing"
"github.com/prysmaticlabs/prysm/v5/beacon-chain/state/genesis"
"github.com/prysmaticlabs/prysm/v5/config/params"
)
func TestGenesisState(t *testing.T) {
tests := []struct {
name string
}{
{
name: params.MainnetName,
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
st, err := genesis.State(tt.name)
if err != nil {
t.Fatal(err)
}
if st == nil {
t.Fatal("nil state")
}
if st.NumValidators() <= 0 {
t.Error("No validators present in state")
}
})
}
}