go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

eth/tracers: add tests for debug_standardTraceBadBlockToFile RPC method

Open winor30 opened this issue 6 months ago • 0 comments

This PR adds test coverage for debug_standardTraceBadBlockToFile method as part of addressing issue #30833.

The new test TestStandardTraceBadBlockToFile covers:

  • Basic bad block tracing with transactions
  • Error handling for non-existent blocks
  • Transaction filtering by hash
  • Bad blocks without transactions
  • Custom tracer configuration

Also adds helper functions createTestTransactions and setupBadBlock for creating test scenarios.

Fixes #30833

winor30 avatar Jun 08 '25 17:06 winor30