aergoio/aergo

View on GitHub
consensus/impl/sbp/sbp.go

Summary

Maintainability
A
3 hrs
Test Coverage

SimpleBlockFactory has 25 methods (exceeds 20 allowed). Consider refactoring.
Open

type SimpleBlockFactory struct {
    *component.ComponentHub
    consensus.ChainDB
    jobQueue         chan interface{}
    blockInterval    time.Duration
Severity: Minor
Found in consensus/impl/sbp/sbp.go - About 2 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                    } else if err != nil {
                        logger.Info().Err(err).Msg("failed to produce block")
                        continue
                    }
    Severity: Major
    Found in consensus/impl/sbp/sbp.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status