We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
eth_getBalance
0
1
Currently the rpc-compat hive test for eth_getBalance/get-balance-blockhash fails, returning the incorrect balance:
rpc-compat
eth_getBalance/get-balance-blockhash
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBalance","params":["0xaa00000000000000000000000000000000000000","0x898753d8fdd8d92c1907ca21e68c7970abd290c647a202091181deec3f30a0b2"]} << {"jsonrpc":"2.0","result":"0x0","id":1} response differs from expected: { "id": 1, "jsonrpc": "2.0", - "result": "0x0" + "result": "0x1" }
Run hive:
./hive --client reth --sim ethereum/rpc-compat --sim.limit "/eth_getBalance"
No response
The text was updated successfully, but these errors were encountered:
Did some debugging, and we the call is failing here, returning Ok(None):
Ok(None)
reth/crates/storage/provider/src/providers/state/historical.rs
Lines 43 to 51 in 2ce72c5
custom traces:
2023-03-24T00:34:40.422816Z TRACE connection{remote_addr=172.17.0.3:58894 conn_id=1}:method_call{method="eth_getBalance"}: Serving eth_getBalance address=0xaa00000000000000000000000000000000000000 block_number=Some(Hash(BlockHash { block_hash: 0x898753d8fdd8d92c1907ca21e68c7970abd290c647a202091181deec3f30a0b2, require_canonical: None })) 2023-03-24T00:34:40.422846Z TRACE connection{remote_addr=172.17.0.3:58894 conn_id=1}:method_call{method="eth_getBalance"}: Getting balance for address address=0xaa00000000000000000000000000000000000000 2023-03-24T00:34:40.422857Z TRACE connection{remote_addr=172.17.0.3:58894 conn_id=1}:method_call{method="eth_getBalance"}: Getting basic account information address=0xaa00000000000000000000000000000000000000 2023-03-24T00:34:40.422860Z TRACE connection{remote_addr=172.17.0.3:58894 conn_id=1}:method_call{method="eth_getBalance"}: Using history key history_key=ShardedKey { key: 0xaa00000000000000000000000000000000000000, highest_transition_id: 1 } 2023-03-24T00:34:40.422874Z TRACE connection{remote_addr=172.17.0.3:58894 conn_id=1}:method_call{method="eth_getBalance"}: Could not find account info
Sorry, something went wrong.
eth_call
insufficient funds
Rjected
Successfully merging a pull request may close this issue.
Describe the bug
Currently the
rpc-compat
hive test foreth_getBalance/get-balance-blockhash
fails, returning the incorrect balance:Steps to reproduce
Run hive:
Node logs
No response
Platform(s)
No response
What version/commit are you on?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: