Skip to content

Commit

Permalink
fix add missing prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Jun 6, 2024
1 parent b43e043 commit f641a9b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions codec/consolereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@ func (c *ConsoleReader) next() (block *pbantelope.Block, err error) {
ctx.stats.inc("DTRX_OP FAILED")
err = ctx.readFailedDTrxOp(line)

case strings.HasPrefix(line, "ACCEPTED_BLOCK_V2"):
ctx.stats.inc("ACCEPTED_BLOCK_V2")
block, err := ctx.readAcceptedBlockV2(line)
if err != nil {
return nil, c.formatError(line, err)
}

return block, nil

case strings.HasPrefix(line, "ACCEPTED_BLOCK"):
ctx.stats.inc("ACCEPTED_BLOCK")
block, err := ctx.readAcceptedBlock(line)
Expand Down

0 comments on commit f641a9b

Please sign in to comment.