aergoio/aergo

View on GitHub
state/chain.go

Summary

Maintainability
A
50 mins
Test Coverage

Method ChainStateDB.SetGenesis has 8 return statements (exceeds 4 allowed).
Open

func (sdb *ChainStateDB) SetGenesis(genesis *types.Genesis, bpInit func(*statedb.StateDB, *types.Genesis) error) error {
    block := genesis.Block()
    stateDB := sdb.OpenNewStateDB(sdb.GetRoot())

    // create state of genesis block
Severity: Major
Found in state/chain.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status