erigon-pulse/core
a ad7be30679
jsonrpc HTTP Get handler & logs topic filter with map (#5922)
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&params=[{"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>
2022-11-03 09:09:04 +07:00
..
allocs SysCallContract shouldn't increase nonce of SystemAddress (#5617) 2022-10-04 18:02:17 +02:00
asm Use strings.EqualFold for string comparison (#5227) 2022-08-30 14:37:14 +07:00
forkid Fix Gnosis Chain fork ID (#5487) 2022-09-23 12:26:35 +02:00
rawdb Dispersed fixes for incremental verkle trees (#5880) 2022-10-27 10:22:53 +02:00
state e3: build files sequentially, flush indices in-advance before commit (#5935) 2022-11-02 10:04:12 +07:00
systemcontracts [BSC] support for Moran fork (#5696) 2022-10-11 13:33:32 +01:00
types jsonrpc HTTP Get handler & logs topic filter with map (#5922) 2022-11-03 09:09:04 +07:00
vm Unify EVM Call flavours (#5939) 2022-11-02 15:04:37 +01:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
block_builder_parameters.go increased logging around POS mining (#5442) 2022-09-20 13:15:56 +01:00
block_validator_test.go Update consensus tests to v11 (#4724) 2022-07-26 09:35:38 +02:00
block_validator.go Simplify miner gas limit post EIP-1559. Default to 30M (#3205) 2022-01-05 16:36:24 +07:00
blockchain.go AuRa system calls to Certifier should be const (#5929) 2022-11-01 14:37:45 +01:00
blocks.go rename (#1978) 2021-05-20 19:25:53 +01:00
bor_fee_log.go Merging Turbo bor into devel (#3372) 2022-02-07 21:30:46 +00:00
chain_makers.go Support BaseFee in AuRa headers (#5820) 2022-10-21 12:43:44 +02:00
error.go EIP-3860: Limit and meter initcode (#5892) 2022-10-31 13:40:41 +01:00
events.go rename (#1978) 2021-05-20 19:25:53 +01:00
evm.go Support BaseFee in AuRa headers (#5820) 2022-10-21 12:43:44 +02:00
gaspool.go Update gaspool.go 2022-03-12 00:08:04 +00:00
gen_genesis_account.go Upgrade tests to 9.0.2 (#2147) 2021-06-13 14:01:11 +01:00
gen_genesis.go Report Valid ExecutionStatus only after all stages (#3212) 2022-01-07 16:54:26 +01:00
genesis_test.go Fix OverrideTerminalTotalDifficulty when datadir is not empty (#4280) 2022-05-26 21:21:51 +02:00
genesis.go Support BaseFee in AuRa headers (#5820) 2022-10-21 12:43:44 +02:00
mkalloc.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
rlp_test.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
skip_analysis.go go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
state_processor.go AuRa system calls to Certifier should be const (#5929) 2022-11-01 14:37:45 +01:00
state_transition.go EIP-3860: Limit and meter initcode (#5892) 2022-10-31 13:40:41 +01:00
tx_cacher.go Move ETL to erigon-lib (#2667) 2021-09-12 08:50:17 +01:00
tx_pool.go Torrent: verify all files (#4270) 2022-05-26 12:27:44 +07:00