Skip to content
This repository was archived by the owner on Sep 15, 2026. It is now read-only.

Commit 00df078

Browse files
committed
log validation fix
1 parent 86334b0 commit 00df078

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎internal/libs/libblockdata/validator.go‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ func Validate(blockData *common.BlockData) (valid bool, err error) {
2424
return false, nil
2525
}
2626

27+
if blockData.Block.LogsBloom == "" {
28+
log.Error().Msgf("Block verification failed for block %s: logsBloom is empty string. It should be 0x", blockData.Block.Number)
29+
return false, nil
30+
}
31+
2732
// check that logs exist if logsBloom is not empty
2833
logsBloomAsNumber := new(big.Int)
2934
logsBloomAsNumber.SetString(blockData.Block.LogsBloom[2:], 16)

0 commit comments

Comments
 (0)