Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Jun 6, 2024
1 parent f641a9b commit 152610c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codec/consolereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 152610c

Please sign in to comment.