aergoio/aergo

View on GitHub
syncer/blockprocessor.go

Summary

Maintainability
A
1 hr
Test Coverage
B
85%

Method BlockProcessor.isValidResponse has 10 return statements (exceeds 4 allowed).
Open

func (bproc *BlockProcessor) isValidResponse(msg interface{}) error {
    validateBlockChunksRsp := func(msg *message.GetBlockChunksRsp) error {
        var prev []byte
        blocks := msg.Blocks

Severity: Major
Found in syncer/blockprocessor.go - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status