Pushchain | Install
System Specs
Section titled “System Specs”| Hardware | Requirement |
|---|---|
| CPU | 4 Cores |
| RAM | 8 GB |
| Disk | 250 GB |
Install Push Chain testnet Validator
Section titled “Install Push Chain testnet Validator”1. System Preparation
Section titled “1. System Preparation”sudo apt updatesudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y2. Install Binary
Section titled “2. Install Binary”cd $HOMEwget https://ss-t.pushchain.nodestake.org/pchaindchmod +x pchaindmv pchaind $HOME/go/bin/pchaind version3. Initialize Node
Section titled “3. Initialize Node”pchaind init yourmoniker --chain-id=push_42101-14. Download Genesis & addrbook
Section titled “4. Download Genesis & addrbook”curl -Ls https://ss-t.pushchain.nodestake.org/genesis.json > $HOME/.pchain/config/genesis.jsoncurl -Ls https://ss-t.pushchain.nodestake.org/addrbook.json > $HOME/.pchain/config/addrbook.json5. Custom config (port, etc)
Section titled “5. Custom config (port, etc)”PORT=136sed -i -e "s%:26657%:${PORT}57%" $HOME/.pchain/config/client.tomlsed -i -e "s%:26658%:${PORT}58%; s%:26657%:${PORT}57%; s%:6060%:${PORT}60%; s%:26656%:${PORT}56%; s%:26660%:${PORT}61%" $HOME/.pchain/config/config.tomlsed -i -e "s%:1317%:${PORT}17%; s%:9090%:${PORT}90%" $HOME/.pchain/config/app.toml
sed -i \-e 's|^pruning *=.*|pruning = "custom"|' \-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \-e 's|^pruning-interval *=.*|pruning-interval = "10"|' \$HOME/.pchain/config/app.toml
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.pchain/config/config.toml6. Create Service
Section titled “6. Create Service”sudo tee /etc/systemd/system/pchaind.service > /dev/null <<EOF[Unit]Description=pchaind DaemonAfter=network-online.target[Service]User=$USERExecStart=$(which pchaind) startRestart=alwaysRestartSec=3LimitNOFILE=65535[Install]WantedBy=multi-user.targetEOFsudo systemctl daemon-reloadsudo systemctl enable pchaind7. Download snapshot
Section titled “7. Download snapshot”SNAP_NAME=$(curl -s https://ss-t.pushchain.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")curl -o - -L https://ss-t.pushchain.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.pchain8. Start Node
Section titled “8. Start Node”sudo systemctl restart pchaindjournalctl -u pchaind -f