From 152610c29248efff3ea675265eff952aede3f812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Sch=C3=B6ll?= Date: Thu, 6 Jun 2024 16:22:45 +0200 Subject: [PATCH] fix check --- codec/consolereader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/consolereader.go b/codec/consolereader.go index ca6ad4c..b5f3ce2 100644 --- a/codec/consolereader.go +++ b/codec/consolereader.go @@ -701,7 +701,7 @@ func (ctx *parseCtx) readAcceptedBlock(line string) (*pbantelope.Block, error) { // ACCEPTED_BLOCK_V2 ${block_num} ${lib} ${block_state_hex} ${finality_data_hex} func (ctx *parseCtx) readAcceptedBlockV2(line string) (*pbantelope.Block, error) { chunks := strings.SplitN(line, " ", 5) - if len(chunks) != 3 { + if len(chunks) != 5 { return nil, fmt.Errorf("expected 5 fields, got %d", len(chunks)) }