Skip to content

Commit

Permalink
fixing libnum not moving when optimism node started in snapshot mode …
Browse files Browse the repository at this point in the history
…from bedrock
  • Loading branch information
Eduard-Voiculescu committed Sep 20, 2024
1 parent bb5e033 commit c9faecf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/tracers/firehose.go
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,10 @@ func (f *Firehose) printBlockToFirehose(block *pbeth.Block, finalityStatus *Fina
}
}

if block.Number-libNum >= 200 {
libNum = block.Number - 200
}

// **Important* The final space in the Sprintf template is mandatory!
f.outputBuffer.WriteString(fmt.Sprintf("FIRE BLOCK %d %s %d %s %d %d ", block.Number, hex.EncodeToString(block.Hash), previousNum, previousHash, libNum, block.Time().UnixNano()))

Expand Down

0 comments on commit c9faecf

Please sign in to comment.