Add testing_buildBlockV1 RPC Method#747
Add testing_buildBlockV1 RPC Method#747MysticRyuujin wants to merge 11 commits intoethereum:mainfrom
Conversation
…ures This commit adds comprehensive support for the testing_buildBlockV1 RPC method, which is used to generate test fixtures for Ethereum execution layer clients. Changes include: - New OpenRPC specification in src/testing/testing_buildBlockV1.yaml - Test fixtures for three scenarios: with transactions, with extra data, without extra data - Integration of testing methods into spec build process (scripts/build.js) - Client configuration to enable testing RPC namespace (tools/client.go) - Test generator implementation with comprehensive validation (tools/testgen/generators.go) - Wordlist update for spellcheck compliance All tests pass: ✅ npm run lint (OpenRPC validation) ✅ npm run test (speccheck validation) ✅ Spellcheck The implementation follows existing patterns and is backward compatible.
|
This PR is in draft mostly because of the requirement to use MariusVanDerWijden/testing-buildblock and it is directly addressing testing for #710 as well as some other minor issues found while running the complete test suite. Also, I'm getting some errors with the branch/fork of geth, which I think are actual geth bugs. |
|
Ok, now the tests are passing, but these changes still need to make it into go-ethereum |
|
I removed one of the tests because it was redundant. The tests cover all scenarios:
It also validates the go-ethereum responses to the spec to avoid regressions in the library |
|
Updated reference to the latest, spec now allows passing |
This PR adds comprehensive support for the testing_buildBlockV1 RPC method.
Changes
Testing Results
✅ All npm lint checks passing
✅ All speccheck tests passing
✅ Spellcheck validation passing