mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
ad7be30679
this pr has two things in it 1. changed filter logs to use a map for the topics. this will speed up queries with many topics in them. I still don't have a use case for this though. i put is as a method of Logs, since that made sense to me, happy to move it back out though. 2. allows json-rpc over http get request. since firefox is a great json viewer (can search through, collapse large results) i often use it to debug. it is also useful for sharing data with those who are less familiar with command line / programming. example get request: http://rpcdaemon/?method=eth_getLogs¶ms=[{"fromBlock":"0xf2316b","toBlock":"0xf2316b"}] it is based on the old jsonrpc http specification https://www.jsonrpc.org/historical/json-rpc-over-http.html#encoded-parameters except we also accept not base64 encoded params. since every eth rpc request has a [], it will immediately fail validation for base64 and attempt to use the parameters as a they are. otherwise it will attempt to parse the rest of the payload as base64 and use that. Co-authored-by: a <a@a.a> Co-authored-by: gfx <86091021+gfxlabs@users.noreply.github.com> |
||
---|---|---|
.. | ||
rpccfg | ||
testdata | ||
allow_list_test.go | ||
allow_list.go | ||
client_example_test.go | ||
client_test.go | ||
client.go | ||
doc.go | ||
endpoints.go | ||
errors.go | ||
handler.go | ||
helpers.go | ||
http_test.go | ||
http.go | ||
inproc.go | ||
ipc.go | ||
json.go | ||
metrics.go | ||
server_test.go | ||
server.go | ||
service.go | ||
stdio.go | ||
subscription_test.go | ||
subscription.go | ||
testservice_test.go | ||
types_test.go | ||
types.go | ||
websocket_test.go | ||
websocket.go |