配置ETH 2.0 同步节点 Nethermind & Prysm
ETH 2.0 节点分为执行客户端
、共识客户端
、验证软件
,同步数据节点无论是快照同步
还是完整存档
,都需要同步启动执行客户端
和共识客户端
。
- 安装配置执行客户端
Nethermind
sudo apt-get update && sudo apt-get install libsnappy-dev libc6-dev libc6 unzip wget https://github.com/NethermindEth/nethermind/releases/download/1.14.5/nethermind-linux-amd64-1.14.5-380bf9c-20221029.zip unzip nethermind-linux-amd64-1.14.5-380bf9c-20221029.zip -d nethermind
添加下面配置到nethermind/configs/mainnet.cfg
"JsonRpc": { "Enabled": true, "Timeout": 20000, "Host": "127.0.0.1", "Port": 8545, "EnabledModules": ["Eth", "Subscribe", "Trace", "TxPool", "Web3", "Personal", "Proof", "Net", "Parity", "Health"], "EnginePort": 8551, "EngineHost": "127.0.0.1", "JwtSecretFile": "keystore/jwt-secret" },
启动Nethermind
cd nethermind ./Nethermind.Launcher # 选择具体配置,或者 ./Nethermind.Runner --config mainnet
- 安装配置共识客户端
Prysm
mkdir prysm && cd prysm curl https://raw.githubusercontent.com/prysmaticlabs/prysm/master/prysm.sh --output prysm.sh && chmod +x prysm.sh ./prysm.sh beacon-chain --datadir ./data --execution-endpoint=http://localhost:8551 --jwt-secret=~/nethermind/keystore/jwt-secret --checkpoint-sync-url=https://beaconstate.ethstaker.cc --genesis-beacon-api-url=https://beaconstate.ethstaker.cc # 如果要做验证者,需要添加参数 --suggested-fee-recipient=0x01234567722E6b0000012BFEBf6177F1D2e9758D9
- 验证检查点正确性
在https://beaconstate.ethstaker.cc/上确认slot编号对应的State root. 如果一致,表明所使用的检查点是正确的。
curl -s http://127.0.0.1:3500/eth/v1/beacon/headers/finalized | jq .'data.header.message'
执行客户端 {#execution-clients}
https://github.com/hyperledger/besu/releases
https://geth.ethereum.org/downloads/
https://downloads.nethermind.io/
共识客户端 {#consensus-clients}
https://github.com/sigp/lighthouse/releases/latest
https://github.com/status-im/nimbus-eth2/releases/latest
https://github.com/prysmaticlabs/prysm/releases/latest
可信检查点列表
https://eth-clients.github.io/checkpoint-sync-endpoints/
我最擅长从零开始创造世界,所以从来不怕失败,它最多也就让我一无所有。
分类:
区块链
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 字符编码:从基础到乱码解决
2008-11-08 欢迎大家加入 Gamebryo QQ群