aergoio/aergo

View on GitHub
chain/recover.go

Summary

Maintainability
A
1 hr
Test Coverage
C
77%

Method ChainService.Recover has 7 return statements (exceeds 4 allowed).
Open

func (cs *ChainService) Recover() error {
    defer RecoverExit()

    logger.Debug().Msg("recover start")

Severity: Major
Found in chain/recover.go - About 45 mins to fix

    Method ReorgMarker.RecoverChainMapping has 6 return statements (exceeds 4 allowed).
    Open

    func (rm *ReorgMarker) RecoverChainMapping(cdb *ChainDB) error {
        best, err := cdb.GetBestBlock()
        if err != nil {
            return err
        }
    Severity: Major
    Found in chain/recover.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status