mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +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> |
||
---|---|---|
.. | ||
allocs | ||
asm | ||
forkid | ||
rawdb | ||
state | ||
systemcontracts | ||
types | ||
vm | ||
.gitignore | ||
block_builder_parameters.go | ||
block_validator_test.go | ||
block_validator.go | ||
blockchain.go | ||
blocks.go | ||
bor_fee_log.go | ||
chain_makers.go | ||
error.go | ||
events.go | ||
evm.go | ||
gaspool.go | ||
gen_genesis_account.go | ||
gen_genesis.go | ||
genesis_test.go | ||
genesis.go | ||
mkalloc.go | ||
rlp_test.go | ||
skip_analysis.go | ||
state_processor.go | ||
state_transition.go | ||
tx_cacher.go | ||
tx_pool.go |