From c9faecf4c0795c204f2fe97846628d25055758a3 Mon Sep 17 00:00:00 2001 From: Eduard Voiculescu Date: Fri, 20 Sep 2024 11:43:05 -0400 Subject: [PATCH] fixing libnum not moving when optimism node started in snapshot mode from bedrock --- eth/tracers/firehose.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eth/tracers/firehose.go b/eth/tracers/firehose.go index cb78e9b91b68..6bf662877819 100644 --- a/eth/tracers/firehose.go +++ b/eth/tracers/firehose.go @@ -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()))