Skip to content

eth_getLogs is very slow for v1.15.11 #31770

@wafeishushu

Description

@wafeishushu

After upgrading geth to v1.15.11, i found eth_getLogs rpc is very slow.
You guys can try this curl to reproduce:

curl --location 'http://localhost:8545' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "eth_getLogs",
    "params": [
        {
            "topics": [
                [
                    "0x25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe27545983",
                    "0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d",
                    "0x501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b"
                ]
            ],
            "fromBlock": "0x1562cfd",
            "toBlock": "0x1562cfd",
            "address": [
                "0x2a3dd3eb832af982ec71669e178424b10dca2ede"
            ]
        }
    ],
    "id": 9723729
}'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions