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

"UnknownBlockNumberInRootDB" exception during requesting eth_getBalacnce to 0 block on arhival node #827

Open
oleksandrSydorenkoJ opened this issue Feb 2, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@oleksandrSydorenkoJ
Copy link

Versions
skalenetwork/schain:3.18.0-beta.0-historic

Preconditions:
Active schain with connected archival node and access to docker containers logs

Steps to reproduce:

  1. Send eth_getBalance("0x<address>", 0) call to archival node
curl -X POST --data '{"id":48,"jsonrpc":"2.0","method":"eth_getBalance","params":["0xd2ba3e0000000000000000000000000000000000","0"]}' http://1.1.1.1:10195
  1. check skaled logs on the archival node

Expected behavior
Skaled should return the actual balance for the address in the 0 block without any errors logs in a docker container.

Actual state:
Skaled returns the actual balance for the 0-block, but prints the "UnknownBlockNumberInRootDB" error in skaled logs.

Logs

2024-02-02 18:01:23.994928   http://localhost:32892 >>> {"id":48,"jsonrpc":"2.0","method":"eth_getBalance","params":["0xd2ba3e0000000000000000000000000000000000","0x5f5e100"]}
2024-02-02 18:01:23.998884   
                                                                               
                                                                             
   Import Failure     /home/s5/actions-runner-1/_work/skaled/skaled/libhistoric/HistoricState.cpp(280): Throw in function void dev::eth::HistoricState::setRootByBlockNumber(uint64_t)
Dynamic exception type: boost::exception_detail::clone_impl<dev::eth::UnknownBlockNumberInRootDB>
[skale::error::tag_block*] = [ type: std::vector<unsigned char, std::allocator<unsigned char> >, size: 24, dump: b0 38 01 bc 00 7f 00 00 8b 3a 01 bc 00 7f 00 00 ]
   
                                                                             
                      Bad Block #00091556.cf785208…                      
                                                                             
                                                                               
2024-02-02 18:01:23.999008   http://localhost:32892 <<< {"id":48,"jsonrpc":"2.0","result":"0x0"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants