Fantom-foundation/go-lachesis

View on GitHub
eventcheck/heavycheck/heavy_check.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Checker.Validate has 6 return statements (exceeds 4 allowed).
Open

func (v *Checker) Validate(e *inter.Event) error {
    addrs, epoch := v.reader.GetEpochPubKeys()
    if e.Epoch != epoch {
        return epochcheck.ErrNotRelevant
    }
Severity: Major
Found in eventcheck/heavycheck/heavy_check.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status