plugeth/rpc
Seungbae Yu 38e002f464
rpc: check that "version" is "2.0" in request objects (#25570)
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.
2022-09-02 17:47:29 +02:00
..
testdata rpc: check that "version" is "2.0" in request objects (#25570) 2022-09-02 17:47:29 +02:00
client_example_test.go
client_opt_test.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
client_opt.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
client_test.go
client.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
constants_unix_nocgo.go
constants_unix.go
doc.go
endpoints.go
errors.go
handler.go
http_test.go
http.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
inproc.go
ipc_js.go
ipc_unix.go
ipc_windows.go
ipc.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
json.go rpc: check that "version" is "2.0" in request objects (#25570) 2022-09-02 17:47:29 +02:00
metrics.go
server_test.go
server.go all: fix some typos (#25551) 2022-08-19 09:00:21 +03:00
service.go
stdio.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00
subscription_test.go rpc: check that "version" is "2.0" in request objects (#25570) 2022-09-02 17:47:29 +02:00
subscription.go
testservice_test.go
types_test.go
types.go
websocket_test.go
websocket.go node, rpc: add JWT auth support in client (#24911) 2022-09-02 17:40:41 +02:00