Fantom-foundation/go-lachesis

View on GitHub
poset/apply_genesis.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Store.ApplyGenesis has 5 return statements (exceeds 4 allowed).
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 {
Severity: Major
Found in poset/apply_genesis.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status