From f641a9ba173b8f2886c34c43c2f66494e2e10748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20Sch=C3=B6ll?= Date: Thu, 6 Jun 2024 16:20:48 +0200 Subject: [PATCH] fix add missing prefix --- codec/consolereader.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/codec/consolereader.go b/codec/consolereader.go index 18757de..ca6ad4c 100644 --- a/codec/consolereader.go +++ b/codec/consolereader.go @@ -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)