Maintenance
Notes on how to maintain and update a Geth Client.
Go - Update
Find the latest version of Go here: https://go.dev/doc/install
GO_LATEST_VERSION= # Add the latest Go version here
cd ~/
wget https://go.dev/dl/go${GO_LATEST_VERSION}.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go${GO_LATEST_VERSION}.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
echo 'PATH="$PATH:/usr/local/go/bin"' >> ~/.profileGeth - Update Client
geth-updateGeth - Update geth.service
geth-stop
geth-config
# MAKE ANY CHANGES TO THE CONFIG
daemon-reload
geth-start
geth-statusGeth - Rollback Chain to Previous Block Number
This was needed for a bug introduced in Geth v.1.10.22 that required a rollback to a previous block
Add debug flag to --http.api
In the Geth console set the new block head e.g. debug.setHead("0xEAC1A8").
Once re-sync has been completed, go back and remove the debug flag from the --http.api argument.
Geth - Resync after an Unexpected Shutdown
To avoid duplication these details can be found on the EthStaker Knowledge Base.
Geth - Pruning
Last updated