syncer/blockprocessor.go
Method BlockProcessor.isValidResponse
has 10 return statements (exceeds 4 allowed). Open
Open
func (bproc *BlockProcessor) isValidResponse(msg interface{}) error {
validateBlockChunksRsp := func(msg *message.GetBlockChunksRsp) error {
var prev []byte
blocks := msg.Blocks