配置ETH 2.0 同步节点 Nethermind & Prysm
ETH 2.0 节点分为执行客户端
、共识客户端
、验证软件
,同步数据节点无论是快照同步
还是完整存档
,都需要同步启动执行客户端
和共识客户端
。
- 安装配置执行客户端
Nethermind
1 | sudo apt-get update && sudo apt-get install libsnappy-dev libc6-dev libc6 unzip |
添加下面配置到nethermind/configs/mainnet.cfg
1
2
3
4
5
6
7
8
9
10"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
1
2
3
4cd nethermind
./Nethermind.Launcher
# 选择具体配置,或者
./Nethermind.Runner --config mainnet
- 安装配置共识客户端
Prysm
1 | mkdir prysm && cd prysm |
- 验证检查点正确性
在https://beaconstate.ethstaker.cc/上确认slot编号对应的State root. 如果一致,表明所使用的检查点是正确的。
1 | 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/