go-ethereum
go-ethereum copied to clipboard
eth/tracers: add tests for debug_standardTraceBadBlockToFile RPC method
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