mantlenetworkio/mantle

[rpc]: Increase the traversal range restriction for eth_getLogs to reduce its impact on service performance.

Opened this issue · 0 comments

** Goals**
Increase the traversal range restriction for eth_getLogs to reduce its impact on service performance.

Current Situation

cast bn --rpc-url http://k8s-qa2-mantlel2-3c6b2e255f-b5a20c5d9c301f22.elb.ap-southeast-1.amazonaws.com

1014573


curl --location --request POST 'http://k8s-qa2-mantlel2-3c6b2e255f-b5a20c5d9c301f22.elb.ap-southeast-1.amazonaws.com' \
--header 'Content-Type: application/json' \
--data-raw '{"id": 0, "jsonrpc": "2.0", "method": "eth_getLogs","params": [{"address": "0x4200000000000000000000000000000000000007", "fromBlock": "earliest", "toBlock": "latest", "topics": ["0xcb0f7ffd78f9aee47a248fae8db181db6eee833039123e026dcbff529522e52a"]}]}' -s | jq -r ".result | length"

1575