You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/rpctest: fix debug_accountRange bench encoding and start key size (erigontech#21774)
## Summary
- `request_generator.go`: replace `base64.StdEncoding.EncodeToString`
with `hexutil.Encode` for the `start` parameter — the server expects a
`0x`-prefixed hex string, not base64
- `bench1.go`, `bench3.go`, `bench9.go`, `account_range_verify.go`:
replace the initial page cursor from `common.Hash{}[:]` (32 bytes,
rejected by the server) to `common.Address{}[:]` (20 bytes)
- `request_generator_test.go`: update test cases to use 20-byte
addresses and hex-encoded expected strings
## Test plan
- [ ] `go test ./cmd/rpctest/rpctest/... -run
TestRequestGenerator_accountRange` passes
- [ ] `go test ./rpc/jsonrpc/... -run TestAccountRange` passes
- [ ] `make lint` clean
0 commit comments