1. eth_getLogs
- 现象,geth版本是1.15.9,此版本有bug,导致Indexlog,无法使用
request timed out
request timed out
- 访问
curl -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0",
"method":"eth_getLogs",
"params":[{"fromBlock":"0x154fa5c","toBlock":"0x154fa5c","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}],
"id":1}' http://172.31.34.215:8545
curl -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0",
"method":"eth_getLogs",
"params":[{"fromBlock":"0x154fa5c","toBlock":"0x154fa5c","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}],
"id":1}' http://172.31.34.215:8545
返回
{"jsonrpc":"2.0","id":1,"error":{"code":-32002,"message":"request timed out"}
{"jsonrpc":"2.0","id":1,"error":{"code":-32002,"message":"request timed out"}