Skip to main content

Polygon

Validator

# install go,git,jq,rabbitmq-server

mkdir bin

git clone https://github.com/maticnetwork/bor.git
git clone https://github.com/maticnetwork/heimdall.git
(cd bor && make bor-all)
(cd heimdall && make install network=mainnet)

ln -s bor/build/bin/bor bin
ln -s bor/build/bin/bootnode bin
ln -s ~/go/bin/heimdalld bin
ln -s ~/go/bin/heimdallcli bin
ln -s ~/go/bin/bridge bin

mkdir ~/.heimdalld

git clone https://github.com/maticnetwork/launch.git
# node_type: sentry/sentry, sentry/validator, without-sentry
cp -rf launch/mainnet-v1/sentry/sentry ~/node

(cd ~/node/heimdall && bash setup.sh)
(cd ~/node/bor && bash setup.sh)
# 生产 systemd service 文件
# heimdalld.service, heimdalld-rest-server.service, heimdalld-bridge.service, bor.service
# (cd ~/node/mainnet-v1 && bash service.sh)

# /etc/matic, /etc/matic/metadata
mkdir /etc/matic
cp -rf launch/mainnet-v1/metadata /etc/matic/metadata