Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad pruning in Receipt domain at the end of the million #13050

Open
JkLondon opened this issue Dec 9, 2024 · 0 comments
Open

Bad pruning in Receipt domain at the end of the million #13050

JkLondon opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
erigon3 imp1 High importance

Comments

@JkLondon
Copy link
Member

JkLondon commented Dec 9, 2024

after pruning smth happening with Receipt domain at block 16999999
Symptom of it - getLogs response with wrong indexes (main)
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method": "eth_getLogs","params": [ {"fromBlock": "0x103663f", "toBlock": "0x103663f"} ], "id":1}' -s localhost:8546
part of response from main

result": [
        {
            "address": "0x5df7511872ba85626cf1ccedbcefc347edc2375e",
            "blockHash": "0xe464691f28218637d00ac4d694a86c0e01044b0a76b357b997e575be6d4cc135",
            "blockNumber": "0x103663f",
            "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
            "logIndex": "0x11c",
....

part of response from quicknode (for reference)

"result": [
        {
            "address": "0x5df7511872ba85626cf1ccedbcefc347edc2375e",
            "blockHash": "0xe464691f28218637d00ac4d694a86c0e01044b0a76b357b997e575be6d4cc135",
            "blockNumber": "0x103663f",
            "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
            "logIndex": "0x0",
....

More light on the reason:
bad indexes come from ReceiptGetAsOf function that works well on DB and most of the files. But at the end of the million (Now I have only this example) values from all 16999999th block's txnums are overwritten.

@JkLondon JkLondon self-assigned this Dec 9, 2024
@AskAlexSharov AskAlexSharov added the imp1 High importance label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erigon3 imp1 High importance
Projects
None yet
Development

No branches or pull requests

2 participants