对于macOS系统,您需要手动编译源代码。
要求依赖项
Go
https://go.dev/doc/install version=1.19+
Python3
启动环境
git clone https://github.com/opside-protocol/opside-chain-testnet-pre-alpha-node-local-run.git
cd opside-chain-testnet-pre-alpha-node-local-run/
编译
编译共识客户端
git clone https://github.com/opside-protocol/prysm.git
git checkout --no-track -b Branch_v4.0.3 v4.0.3 --
cd ./prysm
mkdir ./bin/
go build -o=./bin/beacon-chain ./cmd/beacon-chain
go build -o=./bin/validator ./cmd/validator
将位于./bin/
目录中的beacon-chain
复制到opside-chain-testnet-pre-alpha-node-local-run/prysm/beaconChain/
中。
将validator
目录复制到opside-chain-testnet-pre-alpha-node-local-run/prysm/validator/
中。
编译执行客户端
git clone https://github.com/opside-protocol/go-ethereum.git
git checkout --no-track -b Branch_v1.11.6 v1.11.6 --
cd ./go-ethereum
make geth
将./build/bin/geth
复制到opside-chain-testnet-pre-alpha-node-local-run/geth/
中。
生成验证者密钥库
安装
git clone https://github.com/opside-protocol/opside-staking-deposit-cli.git
cd opside-staking-deposit-cli/
./deposit.sh install
生成
./deposit.sh new-mnemonic
./deposit.sh existing-mnemonic
按照命令行提示生成验证者密钥库,然后将位于opside-staking-deposit-cli/validator_keys/
目录中的keystore-*.json
复制到opside-chain-testnet-pre-alpha-node-local-run/prysm/validator/config/wallet/
中。
配置
在目录opside-chain-testnet-pre-alpha-node-local-run/config/
中创建values.env
文件。
然后
export WITHDRAWAL=<withdrwal opside address>
export PASSWORD=<password encrypting your validator key>
创建 jwt
cd opside-chain-testnet-pre-alpha-node-local-run
echo -n 0x$(openssl rand -hex 32 | tr -d "\n") > ./geth/config/jwtsecret
cp ./geth/config/jwtsecret ./prysm/beaconChain/config/jwtsecret
运行验证者
运行执行节点
cd opside-chain-testnet-pre-alpha-node-local-run
cp ./config/values.env ./geth
./start-geth.sh
运行共识节点
cd opside-chain-testnet-pre-alpha-node-local-run
cp ./config/values.env ./prysm/beaconChain
./start-beaconChain.sh
运行验证者节点
cd opside-chain-testnet-pre-alpha-node-local-run
cp ./config/values.env ./prysm/validator/
./start-validator.sh
检查日志
请参考日志检查。
存款
请参考存款。
Last updated