From b73e09570d9efd87757db9d17ed3c4fd2685fd45 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 25 Jan 2026 16:16:09 +0100 Subject: [PATCH] test(debug_getRawReceipts): use post-Byzantium block for get-block-n test Block 0x3 is pre-Byzantium (byzantiumBlock=9 in the test chain), which means receipts use state root instead of EIP-658 status code. This causes clients that only support EIP-658 status encoding (like reth) to fail the test. Change the test to use block 0xa (10) which is post-Byzantium, ensuring the test validates EIP-658 status encoding which is what modern clients use. Amp-Thread-ID: https://ampcode.com/threads/T-019bf5ac-dd59-76c0-8ba8-8739e84b6a33 Co-authored-by: Amp --- tools/testgen/generators.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/testgen/generators.go b/tools/testgen/generators.go index 4e7bdc3a5..deabff341 100644 --- a/tools/testgen/generators.go +++ b/tools/testgen/generators.go @@ -2196,7 +2196,9 @@ var DebugGetRawReceipts = MethodTests{ Name: "get-block-n", About: "gets receipts non-zero block", Run: func(ctx context.Context, t *T) error { - return t.rpc.CallContext(ctx, nil, "debug_getRawReceipts", "0x3") + // Use block 0xa (10) which is post-Byzantium (byzantiumBlock=9) to ensure + // receipts use EIP-658 status encoding instead of pre-Byzantium state root. + return t.rpc.CallContext(ctx, nil, "debug_getRawReceipts", "0xa") }, }, {