Hemi Network
Last updated
sudo apt install ca-certificates zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev tmux iptables curl nvme-cli git wget make jq libleveldb-dev build-essential pkg-config ncdu tar clang bsdmainutils lsb-release libssl-dev libreadline-dev libffi-dev jq gcc screen unzip lz4 -ywget https://github.com/hemilabs/heminetwork/releases/download/v0.7.0/heminetwork_v0.7.0_linux_amd64.tar.gz tar xvf heminetwork_v0.7.0_linux_amd64.tar.gz && cd heminetwork_v0.7.0_linux_amd64./keygen -secp256k1 -json -net="testnet" > ~/popm-address.jsoncat $HOME/popm-address.jsonnano restart_hemi.sh#!/bin/bash
restart_count=0
restart_log="restart_log.txt"
while true; do
# Start the application
./popmd
# Increment the restart count and write to the log file
((restart_count++))
echo "Restart $restart_count at $(date)" >> $restart_log
# Uygulama çökerse veya durursa, döngü yeniden başlar
echo "Uygulama durdu. 5 saniye sonra yeniden başlatılacak..."
sleep 5
donesudo chmod +x restart_hemi.shscreen -S hemiecho 'export POPM_BTC_PRIVKEY=BURAYA VERİLEN PRİVATE KEY YAZ' >> ~/.bashrc
echo 'export POPM_STATIC_FEE=50' >> ~/.bashrc
echo 'export POPM_BFG_URL=wss://testnet.rpc.hemi.network/v1/ws/public' >> ~/.bashrc
source ~/.bashrc./restart_hemi.shnano $HOME/popm-address.json{
"ethereum_address": "",
"network": "testnet",
"private_key": "",
"public_key": "",
"pubkey_hash": ""
}