poset/apply_genesis.go
Method Store.ApplyGenesis
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Store) ApplyGenesis(g *genesis.Genesis, genesisAtropos hash.Event, appHash common.Hash) error {
if g == nil {
return fmt.Errorf("genesis config shouldn't be nil")
}
if len(g.Alloc.Validators) == 0 {