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

erigon_getHeaderByNumber: block header not found #4599

Closed
UliGall opened this issue Jul 1, 2022 · 1 comment
Closed

erigon_getHeaderByNumber: block header not found #4599

UliGall opened this issue Jul 1, 2022 · 1 comment

Comments

@UliGall
Copy link

UliGall commented Jul 1, 2022

System information

Erigon version: erigon version 2022.99.99-dev-16e57aa8

OS & Version: Ubuntu 22.04 LTS (GNU/Linux 5.15.0-40-generic x86_64)
Machine: AMD Ryzen 9 5950X, 128 GB RAM, 2x4TB NVMe SSD in RAID1

Commit hash : 16e57aa

Expected behaviour

I want to use Trueblocks (I already opened an issue there, but erigon seems to be the problem) and it seems to have some issues accessing blocks from erigon. I checked the logs of the RPCdaemon and it seems that the erigon_getHeaderByNumber function is not properly working. For block 14 000 000, it is not working, but for block 14 513 755 it is returning the correct result.

curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "erigon_getHeaderByNumber", "params": [14000000], "id":1}' localhost:8545
{"jsonrpc":"2.0","id":1,"result":{"parentHash":"0x28bcec77a2f634eb22d0c74f24adba72728eebe9ea1c68d61080b3f9c5edf90a","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","miner":"0x002e08000acbbae2155fab7ac01929564949070d","stateRoot":"0x92e5e67d4f75df60f746ab982a6f94fdcb76609337992e9daec7b5d7437f88bf","transactionsRoot":"0x9a13d8cd4bfa7584b127e5852af5cfed018d10e9945cb8ff40ec8399f4bb87ec","receiptsRoot":"0xb9cf70962d076998310205870a9f33c09480cd9c4c48682daada1d85644d98db","logsBloom":"0x71b9d53743003947d436014fcdbddb3402304c8d291de16892114f6a322419fb52760b4ecd0de415585179e744ed8322c701ca5b9819b903439a6ac08076fa3b015025a19002122cebdb4f4e56122ef187a066c405c8902c2a09366f884b6c34f6347142c22a6903092c9cb91a35ea5323670ec0042ad401e21e36da5e0b6f3e5a07979f0fb877b4235806cc31ea6c07dec44d09b115f1293c30e4c87a708933979db0a17bff2e422eb2cad23f055ada0a3503142a7019912961adff18491118b328e462ce356b703d15a81a563a5cd2106c53ee5438099e5981252a469922c2347cb7b9330202e520c007c4052e5a290826cf02fb7961480e58ca152c8037e7","difficulty":"0x2d30fceb8c4923","number":"0xdd765b","gasLimit":"0x1c9c380","gasUsed":"0xebd7e8","timestamp":"0x6249b495","extraData":"0x457468657265756d534f4c4f2f326d696e6572735f4555","mixHash":"0x8a8f3dc8e48ecf4a87dd20c7994f8e6ff987902fde3f5396220f104269d3f504","nonce":"0x59de360003888d5c","baseFeePerGas":"0xe781ad01d","hash":"0x96a3493b7d7d0b88380808752fa4929a6ef04a849ff7b38a5b80b7701c3b54c1"}}

Actual behaviour

{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"block header not found: 14000000"}}

Steps to reproduce the behaviour

Set up the erigon node, let it sync in accordance to the tutorial, issues prevail. Pruning seems to be disabled by default, I did not enable it. I used the docker-compose-approach.

Backtrace

[backtrace]

Health Check

http POST http://localhost:8545/health --raw '{"min_peer_count": 3, "known_block": "0x1F"}'

HTTP/1.1 200 OK
Content-Length: 82
Content-Type: text/plain; charset=utf-8
Date: Fri, 01 Jul 2022 08:31:02 GMT

{
    "check_block": "HEALTHY",
    "healthcheck_query": "HEALTHY",
    "min_peer_count": "HEALTHY"
}

Any idea? Thanks so much!

@UliGall
Copy link
Author

UliGall commented Jul 4, 2022

Thanks @enriavil1, that solved my issue!

@UliGall UliGall closed this as completed Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant