-
Notifications
You must be signed in to change notification settings - Fork 40
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
trace_block
no longer works after Hertz upgrade
#211
Comments
@0xStrobe Did you make sure Berlin, London and Hertz blocks are set at the same height? |
@Mister-EA what do you mean specifically? i didn't manually configure that |
It's hardcoded in the source code, don't need manually configure |
anything i could do from the user's side to help u debug and identify this issue? :) |
Could you please help to check trace_block when blockNum between 28500000 to 29500000? |
As a temporary fix, can use --snap.stop, It will stop move historical data from DB to new immutable snapshots. |
@blxdyx Sure :) I tested with this block 28700000 and the response is correct. (This is before 31302048 though, which is the Hertz upgrade block) The request is this:
The response is a huge payload which is what we expect. |
Will this fix the past blocks or only will be fixing the new ones from now? |
Meanwhile I have started a new node based on the snapshots the Ankr team published, now I'm getting a different error when requesting block {"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"first run for txIndex 0 error: nonce too high: address 0xD98eA98A4aCC0eAcF180c75600e365867D13b51c, tx: 1 state: 0"}} This is also true for the official Ankr RPC, if you send this request: curl --request POST \
--url https://rpc.ankr.com/bsc \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"id": 1,
"method": "trace_block",
"params": [
"0x1dda1a0"
]
}' So in summary to make clear of the context, since this issue has been open for a while -
|
the new ones |
Thank you, is there a way to fix and backfill the faulty blocks since the Hertz hard fork? |
You can try to sync from snapshot before Hertz hard fork with this flag |
Is there a way to reset an updated node to a block before Hertz then sync from there? Unfortunately I can't find a snapshot before Hertz anymore, there is this one but it's very up to date - https://github.com/bnb-chain/bsc-snapshots#endpointmainnet-update-bi-weekly (Also would appreciate it if this bug is fixed in the codebase and there is a short guide for users to fix/resync the faulty blocks or snapshots :)) |
One way is delete all the snapshots more than 29500000 blocks in ./data/snapshots and delete db in this dir. And then use |
Thank you, I will give it a shot! Hopefully the bug will soon be identified and fixed though, so no more hacks are needed. :) Let me know if you need any other digging from user side |
Seems fix in latest commit in devel. You could try this. |
Syncing with the latest commit in devel, will report back |
Follow this: #234 |
Thank you! I forgot to delete /snapshots/db but ran all the other stuff and synced... The block I used in the OP is working with traces now (block 0x1dda1a0). However to be completely sure, I will delete |
Reopen if you still have problem |
System information
Erigon version:
1.1.9-dev-4b352f69
OS & Version: Linux
Commit hash:
4b352f69
Erigon Command (with flags/config):
Chain/Network: BSC
Expected behaviour
When sending an RPC request with method call
trace_block
, the erigon node should return trace entries of the block.Example request:
Actual behaviour
Erigon responds with an error. It seems that the Hertz upgrade has not been correctly implemented.
The text was updated successfully, but these errors were encountered: