Geth
Last updated
wget -O go.tar.gz https://go.dev/dl/go1.19.6.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go.tar.gz
echo export PATH=$PATH:/usr/local/go/bin >> $HOME/.bashrc
source $HOME/.bashrcgo version
rm go.tar.gzsudo apt-get update
sudo apt install build-essential gitmkdir -p ~/git
cd ~/git
git clone -b master https://github.com/ethereum/go-ethereum.git
cd go-ethereum
# Get new tags
git fetch --tags
# Get latest tag name
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
# Checkout latest tag
git checkout $latestTag
# Build
make gethsudo cp $HOME/git/go-ethereum/build/bin/geth /usr/local/binsudo nano /etc/systemd/system/execution.service[Unit]
Description=Geth Execution Layer Client service for Goerli
Wants=network-online.target
After=network-online.target
Documentation=https://www.coincashew.com
[Service]
Type=simple
User=execution
Group=execution
Restart=on-failure
RestartSec=3
KillSignal=SIGINT
TimeoutStopSec=900
ExecStart=/usr/local/bin/geth \
--goerli \
--metrics \
--datadir=/var/lib/geth \
--pprof \
--state.scheme=path \
--authrpc.jwtsecret=/secrets/jwtsecret
[Install]
WantedBy=multi-user.targetsudo systemctl daemon-reload
sudo systemctl enable executionsudo systemctl start execution
sudo systemctl status executionsudo journalctl -fu execution | cczegeth[4531]: INFO [02-04|01:20:48.280] Chain head was updated number=16000 hash=2317ae..c41107
geth[4531]: INFO [02-04|01:20:49.648] Imported new potential chain segment number=16000 hash=ab173f..33a21bsudo systemctl stop executionsudo systemctl start executionsudo systemctl status execution