ETH节点同步问题

Sep 16 13:05:01 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:05:01.408] Looking for peers                        peercount=1 tried=20 static=0
Sep 16 13:05:11 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:05:11.409] Looking for peers                        peercount=1 tried=21 static=0
Sep 16 13:05:22 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:05:22.075] Looking for peers                        peercount=1 tried=27 static=0
Sep 16 13:05:26 Ubuntu-2204-jammy-amd64-base geth[2980]: WARN [09-16|13:05:26.407] Post-merge network, but no beacon client seen. Please launch one to follow the chain!
Sep 16 13:05:32 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:05:32.113] Looking for peers                        peercount=2 tried=33 static=0
Sep 16 13:05:42 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:05:42.273] Looking for peers                        peercount=4 tried=31 static=0
Sep 16 13:05:52 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:05:52.409] Looking for peers                        peercount=4 tried=25 static=0
Sep 16 13:06:02 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:06:02.409] Looking for peers                        peercount=4 tried=34 static=0
Sep 16 13:06:12 Ubuntu-2204-jammy-amd64-base geth[2980]: INFO [09-16|13:06:12.742] Looking for peers                        peercount=4 tried=30 static=0

Post-merge network, but no beacon client seen. Please launch one to follow the chain!

请问各位大佬这种情况如何解决

请先 登录 后评论

最佳答案 2022-09-17 12:59

geth版本 1.10.25
官方文档
https://docs.prylabs.network/docs/install/install-with-script
从已有信标节点同步
https://docs.prylabs.network/docs/prysm-usage/checkpoint-sync
查询节点状态命令
https://docs.prylabs.network/docs/monitoring/checking-status

1/创建一个目录并下载命令文件
mkdir prysm && cd prysm
curl https://raw.githubusercontent.com/prysmaticlabs/prysm/master/prysm.sh --output prysm.sh && chmod +x prysm.sh
2/生产jwt
./prysm.sh beacon-chain generate-auth-secret
3/启动geth
在原有命令上加上(注意替换路径)   --authrpc.jwtsecret /path/to/jwt.hex 
4/取infura注册一个eth2节点,否则同步要很久
infura_eth2_endpoint
5/启动信标链
直接启动会报个错,需要加一个flag,类似接受协议
--accept-terms-of-use 
另外有个flag 是替换手续费接受地址,要么随便替换个地址,或者不要这个flag (针对不质押32eth)

(下面命令替换地址,替换{infura_eth2_endpoint})
8551是geth里面的一个默认端口, 如需修改这个端口,要先在启动geth时修改 --authrpc.port value (default: 8551)

nohup ./prysm.sh beacon-chain --execution-endpoint=http://localhost:8551 --jwt-secret=./jwt.hex --suggested-fee-recipient=随便替换地址  --accept-terms-of-use --checkpoint-sync-url=infura_eth2_endpoint --genesis-beacon-api-url=infura_eth2_endpoint &
请先 登录 后评论

其它 7 个回答

663 - 合约
请先 登录 后评论
林云
请先 登录 后评论
林云
请先 登录 后评论
runtoweb3.com - 架构师
请先 登录 后评论
林云
请先 登录 后评论
ZhaiGx
请先 登录 后评论
心难控xnk
请先 登录 后评论
  • 5 关注
  • 0 收藏,7551 浏览
  • raven 提出于 2022-09-16 19:09

相似问题