Skip to content

Commit

Permalink
fix missing block number
Browse files Browse the repository at this point in the history
  • Loading branch information
fschoell committed Jun 12, 2024
1 parent 3a062ad commit 274aa14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codec/consolereader.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ func (ctx *parseCtx) readAcceptedBlockV2(line string) (*pbantelope.Block, error)
block := ctx.currentBlock

block.Id = chunks[1]
block.Number = uint32(blockNum)

lib, err := strconv.ParseInt(chunks[3], 10, 32)
if err != nil {
Expand All @@ -746,8 +747,6 @@ func (ctx *parseCtx) readAcceptedBlockV2(line string) (*pbantelope.Block, error)
}
block.FinalityData = finalityData

ctx.logger.Info("decoded ACCEPTED BLOCK V2", zap.Any("block", block))

zlog.Debug("blocking until abi decoder has decoded every transaction pushed to it")
err = ctx.abiDecoder.endBlock(ctx.currentBlock)
if err != nil {
Expand Down

0 comments on commit 274aa14

Please sign in to comment.