Hardfork-Restaking
sudo systemctl stop 0gchaind geth
cd $HOME
git clone https://github.com/0glabs/0g-geth.git
cd 0g-geth
make geth
cp $HOME/0g-geth/build/bin/geth $HOME/go/bin/geth
cd $HOME
wget "https://github.com/0glabs/0gchain-NG/releases/download/v2.0.1/galileo-v2.0.1.tar.gz"
tar -xvzf galileo-v2.0.1.tar.gz
cd galileo-v2.0.1
sudo chmod +x $HOME/galileo-v2.0.1/bin/0gchaind
cp $HOME/galileo-v2.0.1/bin/0gchaind $HOME/go/bin/0gchaind
NOT: aşağıdaki port ve servis işlemleri validator deil iseniz yapmanıza gerenk yok.
echo "export OG_PORT=56" >> $HOME/.bash_profile
source $HOME/.bash_profile
sudo tee /etc/systemd/system/0gchaind.service > /dev/null <<EOF
[Unit]
Description=0GChainD Service
After=network.target
[Service]
User=$USER
WorkingDirectory=$HOME/galileo-used
ExecStart=$HOME/go/bin/0gchaind start \
--rpc.laddr tcp://0.0.0.0:${OG_PORT}657 \
--chaincfg.chain-spec devnet \
--chaincfg.kzg.trusted-setup-path=$HOME/galileo-used/kzg-trusted-setup.json \
--chaincfg.engine.jwt-secret-path=$HOME/galileo-used/jwt-secret.hex \
--chaincfg.kzg.implementation=crate-crypto/go-kzg-4844 \
--chaincfg.block-store-service.enabled \
--chaincfg.node-api.enabled \
--chaincfg.node-api.logging \
--chaincfg.node-api.address 0.0.0.0:${OG_PORT}500 \
--chaincfg.engine.rpc-dial-url=http://localhost:${OG_PORT}551 \
--pruning=nothing \
--chaincfg.restaking.enabled \
--chaincfg.restaking.symbiotic-rpc-dial-url holoski+bimiktar-para-için-rpc-ekle \
--chaincfg.restaking.symbiotic-get-logs-block-range 100 \
--home=$HOME/.0gchaind/0g-home/0gchaind-home \
[email protected]:26656 \
--p2p.external_address=$(curl -s http://ipv4.icanhazip.com):${OG_PORT}656
Restart=always
RestartSec=5
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
EOF
rm -rf /root/.0gchaind/0g-home/0gchaind-home/config/addrbook.json
sudo systemctl restart geth
sleep 5
sudo systemctl restart 0gchaind
sudo journalctl -u 0gchaind -u geth -f -o cat
Last updated