以太坊全节点部署

1. 安装执行客户端

1.添加 PPA 源,安装 go-ethereum 稳定版

sudo add-apt-repository -y ppa:ethereum/ethereum

2.更新

sudo apt update

3.安装geth

sudo apt install ethereum -y

4.查看版本信息

geth version

2. 安装共识客户端

Prysm 是以太坊权益证明共识规范的实现,接下来介绍如何安装。

2.1 安装prysm

按如下目录树创建文件夹,这里我们在~目录下创建ethereum文件夹

📂ethereum

	┣ 📂consensus

	┣ 📂execution
cd ~	
mkdir ethereum && cd ethereum
mkdir consensus
mkdir execution

进入consensus目录下,下载prysm.sh

cd consensus
mkdir prysm && cd prysm
curl https://raw.githubusercontent.com/prysmaticlabs/prysm/master/prysm.sh --output prysm.sh && chmod +x prysm.sh
2.2 生成jwt secret

可以使用像这样的在线生成器,将生成的数据复制粘贴到jwt.hex中,这里将jwt.hexprysm.sh放在同一个目录下

sudo vim jwt.hex
# 7673a018a5d508bf158bdf54254ef40d8b71c3d8477904715ab9fba20ef7f905

3. 运行执行客户端

有关参数定义,请参阅 Geth 的命令行选项

geth --http --http.api eth,net,engine,admin --authrpc.jwtsecret ~/ethereum/consensus/jwt.hex

4. 使用Prysm运行beacon node

cd ~/ethereum/consensus
./prysm.sh beacon-chain --execution-endpoint=http://localhost:8551 --jwt-secret=~/ethereum/consensus/jwt.hex
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值