Skip to content

Commit b73e095

Browse files
mattsseampagent
andcommitted
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 <amp@ampcode.com>
1 parent 11517b4 commit b73e095

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tools/testgen/generators.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,9 @@ var DebugGetRawReceipts = MethodTests{
21962196
Name: "get-block-n",
21972197
About: "gets receipts non-zero block",
21982198
Run: func(ctx context.Context, t *T) error {
2199-
return t.rpc.CallContext(ctx, nil, "debug_getRawReceipts", "0x3")
2199+
// Use block 0xa (10) which is post-Byzantium (byzantiumBlock=9) to ensure
2200+
// receipts use EIP-658 status encoding instead of pre-Byzantium state root.
2201+
return t.rpc.CallContext(ctx, nil, "debug_getRawReceipts", "0xa")
22002202
},
22012203
},
22022204
{

0 commit comments

Comments
 (0)