Skip to content

Testnet 39539205 bad block due to block gas used mismatch #37

@will-2012

Description

@will-2012

log:

2025-07-20T09:40:48.019265Z ERROR ChainOrchestrator::poll: sync::pipeline: Stage encountered a validation error: block gas used mismatch: got 193280, expected 216102; gas spent by each transaction: [(0, 41798), (1, 88784),(2, 110368),(3, 142066),(4, 193280)] stage=Execution bad_block=39539205

bad tx:

https://testnet.bscscan.com/tx/0x9c5aa6ee1ac2885a2e7b2746e598cf7fdd573d7953dd5f50c092d1033ec86376

39539205 is mapped to feymanfix by https://github.com/loocapro/reth-bsc/blob/main/src/node/evm/config.rs#L324, and then is mapped to Shanghai spec by https://github.com/loocapro/reth-bsc/blob/main/src/hardforks/bsc.rs#L361.

and different specs(Cancun hardfork support EIP-6780) have different behaviors in evm about the destroyed-tx(https://testnet.bscscan.com/tx/0x5eb23d781f0a9f7e613587b8b66be5e6a5fe4d369f292b039f1bb69a63c72772).

This is wrong and mapping to Cancun is expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions