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

E3: .result.highestBlock and .result.currentBlock block height mismatch #541

Open
ryujimin220 opened this issue Oct 28, 2024 · 11 comments
Open
Assignees

Comments

@ryujimin220
Copy link

ryujimin220 commented Oct 28, 2024

System information

Erigon version: ./erigon --version

  • erigon version 1.3.0-alpha3

OS & Version: Windows/Linux/OSX

  • Linux

Erigon Command (with flags/config):

curl localhost:8545 \
>   -X POST \
>   -H "Content-Type: application/json" \
>   --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":67}' | jq -r '.result.highestBlock' | python3 -c "print(int(input(), 16))"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   807  100   747  100    60  83000   6666 --:--:-- --:--:-- --:--:--   98k
43504999
curl localhost:8545 \
>   -X POST \
>   -H "Content-Type: application/json" \
>   --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":67}' | jq -r '.result.currentBlock' | python3 -c "print(int(input(), 16))"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   807  100   747  100    60   364k  30000 --:--:-- --:--:-- --:--:--  394k
43506502

Config:

#!/bin/bash

docker run -d \
--name bsc-mainnet-erigon \
--restart unless-stopped \
-v /mnt/bsc:/home/erigon/.local/share/erigon \
-p 8545:8545 \
-p 8546:8546 \
-p 6060:6060 \
ghcr.io/node-real/bsc-erigon:1.3.0-alpha3 \
--prune.mode archive \
--datadir=/home/erigon/.local/share/erigon \
--http \
--http.addr "0.0.0.0" \
--http.corsdomain "*" \
--http.vhosts "*" \
--http.api=eth,erigon,web3,net,debug,txpool,trace,bsc \
--rpc.returndata.limit 2000000 \
--ws \
--chain=bsc \
--metrics \
--metrics.addr "0.0.0.0" \
--metrics.port 6060 \
--torrent.download.rate=512mb \
--snap.keepblocks=true \
--http.compression \
--http.api=eth,erigon,web3,net,debug,txpool,trace,bsc \
--http.trace \
--txpool.accountslots=64

Chain/Network:

  • BSC / Mainnet

Expected behaviour

  • .result.highestBlock to be greater than .result.currentBlock

Actual behaviour

  • .result.highestBlock is way behind .result.currentBlock
  • All our erigon3 nodes are stuck at the same .result.highestBlock
@MatusKysel
Copy link
Collaborator

Thanks for reporting, I think I might have found where the problem is. I will update you once it's finish. I think result what you are getting right now on highestBlock is actually FrozenBlocks

@ryujimin220
Copy link
Author

Thanks for the update and yes, please keep me posted!
Thank you!!

@MatusKysel
Copy link
Collaborator

Hey @ryujimin220 for now we will not fix this as Erigon3 is planing to have it in a alpha6 erigontech#11487 and our change right now could only lead to conflicts. I will update this issue once we have alpha6 in our code

@MatusKysel MatusKysel self-assigned this Oct 30, 2024
@ryujimin220
Copy link
Author

Hey @MatusKysel, thanks for the update.
Any idea when alpha6 is going to be released?

@MatusKysel
Copy link
Collaborator

MatusKysel commented Oct 30, 2024

@ryujimin220 I think it could be 1-2 weeks, but as soon as fix is available from erigon I will cherry-pick it and let you know

@ryujimin220
Copy link
Author

Got it. Thanks @MatusKysel

@MatusKysel
Copy link
Collaborator

Hey @ryujimin220 erigontech@54960b0 so I am updating you, fix is ready in main erigon but we are waiting for alpha release. The new release is 75% ready https://github.com/erigontech/erigon/milestone/24

@ryujimin220
Copy link
Author

Awesome!
Thanks for the update @MatusKysel

@ryujimin220
Copy link
Author

Hey @MatusKysel ,
Any updates on the new release?

@MatusKysel
Copy link
Collaborator

Hey @ryujimin220 alpha6 milestone was closed few hours ago https://github.com/erigontech/erigon/milestone/24 now we are waiting for official release. My estimation are that this week you will have fixed version

@ryujimin220
Copy link
Author

Perfect! Please keep me posted when the official release is out!
Thanks again @MatusKysel

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

2 participants