go-ethereum/rpc/testdata
Daniel Liu 1d6b09394b
rpc: check that version is 2.0 in request objects #25570 (#973)
The JSON-RPC spec requires the "version" field to be exactly "2.0",
so we should verify that. This change is not backwards-compatible with
sloppy client implementations, but I decided to go ahead with it anyway
because the failure will be caught via the returned error.

Co-authored-by: Seungbae Yu <dbadoy4874@gmail.com>
2025-04-24 19:02:33 +08:00
..
invalid-badid.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-badversion.js rpc: check that version is 2.0 in request objects #25570 (#973) 2025-04-24 19:02:33 +08:00
invalid-batch.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-idonly.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-nonobj.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
invalid-syntax.json upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-batch.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-echo.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-namedparam.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-noargsrets.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-nomethod.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-noparam.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
reqresp-paramsnull.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
revcall.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
revcall2.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00
subscription.js upgrade the websocket in xdpos (#349) 2023-11-06 15:37:14 +11:00