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 - 合约

这里不是很了解,以太坊合并以后运行节点的话,目前应该是要同时运行执行层客户端(Geth)和共识层客户端(Prysm)。这里报错像是没找到共识层的客户端。

请先 登录 后评论
林云

他目前应该只是运行了Geth执行客户端,需要再增加共识客户端 我目前测试了 prysm teku这两个,目前使用同步效果差不太多,470多W的区块,需要同步好几天呢。

请先 登录 后评论
林云

image.png

我这个200多W的区块,同步了4天了

请先 登录 后评论
runtoweb3.com - 架构师

执行层你们同步了多久?erigon节点我同步了两周还没完

请先 登录 后评论
林云

ETH2.0节点合并后,共识节点与执行节点都已同步到最新区块,但是web3不能像以前一样正常获取geth执行节点的区块与交易数据,查询钱包地址的数量一直都是0,请教一下这是什么问题?

请先 登录 后评论
ZhaiGx

geth客户端显示Beacon client online, but no consensus updates received in a while. Please fix your beacon client to follow the chain!和Looking for peers 怎么解决?

请先 登录 后评论
心难控xnk

请问我用prysm同步共识层数据时,一直显示level=error msg="Unable to process past deposit contract logs, perhaps your execution client is not fully synced" error="processPastLogs: no contract code at given address" prefix=powchain。麻烦请教一下这个应该怎么解决

请先 登录 后评论
  • 5 关注
  • 0 收藏,10069 浏览
  • raven 提出于 2022-09-16 19:09