Skip to content

Commit

Permalink
fix ACCEPTED_BLOCK_V2 handler
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroShkvorets committed Jun 25, 2024
1 parent ff5ce34 commit 9bbf44c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions codec/consolereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ func (l *ConsoleReader) Read() (out interface{}, err error) {
case strings.HasPrefix(line, "DTRX_OP FAILED"):
err = ctx.readFailedDTrxOp(line)

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

return block, nil

case strings.HasPrefix(line, "ACCEPTED_BLOCK"):
block, err := ctx.readAcceptedBlock(line)
if err != nil {
Expand Down

0 comments on commit 9bbf44c

Please sign in to comment.