Skip to content

geth giving BAD BLOCK and invalid merkle root error - stops working after that #32386

@SyedMuhamadYasir

Description

@SyedMuhamadYasir

System information

Geth version: geth version 1.16.1-stable-12b4131f
CL client & version: Lighthouse v7.1.0-cfb1f73
OS & Version: Ubuntu 22.04.1 LTS
Commit hash : its a stable version,

Expected behaviour

it should just keep syncing, adding new blocks

Actual behaviour

it encounters a bad block and just stops working altogether (see screenshot)

Image

Steps to reproduce the behaviour

nothing particular, it just happens at random to a node..


Logs (in text form)

```
INFO [08-10|20:19:33.818] Forkchoice requested sync to new head    number=35379 hash=bd3f06..61944d finalized=unknown
INFO [08-10|20:19:33.818] Restarting sync cycle                    reason="chain gapped, head: 35360, newHead: 35379"
ERROR[08-10|20:19:33.818] Nil finalized block cannot evict old blobs
ERROR[08-10|20:19:33.864] Beacon backfilling failed                err="syncing canceled (requested)"
WARN [08-10|20:19:33.955] Failed to load old bad blocks            error="pebble: not found"
ERROR[08-10|20:19:33.956]
########## BAD BLOCK #########
Block: 19714 (0x36bd5ebae5d726803f7d7cb7c601658317e114f85bdcc0b25d52c64db9796859)
Error: invalid merkle root (remote: fb1bdf30c99aaca065710ae1b0db7f7b6c3c788d8b69d22803c2be2e0dbc0710 local: b6e260f14a8ce4f2e27990eb0ab9a0059bac31f3ac7176af34772b1e31b6ec2d) dberr: %!w(<nil>)
Platform: geth v1.16.1 go1.24.4 amd64 linux
VCS: 12b4131f-20250702
Chain config: &params.ChainConfig{ChainID:8888, HomesteadBlock:0, DAOForkBlock:<nil>, DAOForkSupport:false, EIP150Block:0, EIP155Block:0, EIP158Block:0, ByzantiumBlock:0, ConstantinopleBlock:0, PetersburgBlock:0, IstanbulBlock:0, MuirGlacierBlock:<nil>, BerlinBlock:0, LondonBlock:0, ArrowGlacierBlock:<nil>, GrayGlacierBlock:<nil>, MergeNetsplitBlock:0, ShanghaiTime:(*uint64)(0xc0007805a8), CancunTime:(*uint64)(0xc0007805b0), PragueTime:(*uint64)(0xc0007805b8), OsakaTime:(*uint64)(nil), VerkleTime:(*uint64)(nil), TerminalTotalDifficulty:0, DepositContractAddress:0x4242424242424242424242424242424242424242, EnableVerkleAtGenesis:false, Ethash:(*params.EthashConfig)(nil), Clique:(*params.CliqueConfig)(nil), BlobScheduleConfig:(*params.BlobScheduleConfig)(0xc0004987a0)}
Receipts:
##############################

ERROR[08-10|20:19:33.956] Nil finalized block cannot evict old blobs
ERROR[08-10|20:19:34.000] Beacon backfilling failed                err="retrieved hash chain is invalid: invalid merkle root (remote: fb1bdf30c99aaca065710ae1b0db7f7b6c3c788d8b69d22803c2be2e0dbc0710 local: b6e260f14a8ce4f2e27990eb0ab9a0059bac31f3ac7176af34772b1e31b6ec2d) dberr: %!w(<nil>)"
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions