Core-GethThe pages of this site follow this link

Core-Geth downloads

Get the Core-Geth client.

Download a release for Linux, macOS or Windows, run it as a container, or build the client from source. Every archive and image is published with a checksum and a build attestation, so you can confirm what you downloaded before you run it.

Latest release v1.13.0, published September 14, 2026. Release notes · All releases

Install Core-Geth

How to download, install, and run the Core-Geth client

Each block takes the build most machines need: the x86-64 archive on Linux, Apple Silicon on macOS, the published image for containers. Check an archive against its checksum and its build attestation before you run it: both commands are at the foot of this page.

Every archive and image on this page is from the latest v1.13 release. If you are replacing a v1.12 node, that node needs a new P2P key before it starts again: moving a v1.12 node has the commands.

Choose your platform

Linux

The x86-64 and Arm64 archives need glibc 2.17 or newer, which is RHEL 7, CentOS 7 and anything more recent; the 32-bit Arm archives need glibc 2.28 or newer. The release report lists every archive and its platform.

Install curl and unzip

On Debian or Ubuntu:

sudo apt-get update && sudo apt-get install -y curl unzip

On Fedora or RHEL, run sudo dnf install -y --refresh curl unzip && sudo dnf upgrade -y curl unzip instead, and on Arch, sudo pacman -Syu --needed curl unzip. Each line also updates curl and unzip if they are already installed.

Download the release, check it and install it

curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-linux-v1.13.0.zip
curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-linux-v1.13.0.zip.sha256
sha256sum -c core-geth-linux-v1.13.0.zip.sha256 &&
  unzip -o core-geth-linux-v1.13.0.zip &&
  sudo install -m 0755 geth /usr/local/bin/geth &&
  geth version

sha256sum -c must print OK: if it prints FAILED, delete the file and download it again rather than running it. On an Arm machine, put the name for your processor where the file name says linux: arm64 if uname -m prints aarch64 or arm64, arm7 for armv7l, arm6 for armv6l, and arm5 for armv5tel.

Start a node on Ethereum Classic

geth --classic

For the Mordor test network, run geth --mordor instead.

Linux users guide

Every file in this release

uname -m decides which archive you need, whatever distribution you run: a 64-bit capable board can still be running a 32-bit system.

FileYour machineSizeChecksum
core-geth-linux-v1.13.0.zipx86_64: most servers and desktops33 MBsha256
core-geth-arm64-v1.13.0.zipaarch64 or arm64: Raspberry Pi on a 64-bit OS, AWS Graviton, Ampere30 MBsha256
core-geth-arm7-v1.13.0.ziparmv7l: Raspberry Pi on a 32-bit OS, and other 32-bit boards31 MBsha256
core-geth-arm6-v1.13.0.ziparmv6l: older Raspberry Pi31 MBsha256
core-geth-arm5-v1.13.0.ziparmv5tel and other armv5: embedded boards31 MBsha256
core-geth-arm-v1.13.0.zipOther 32-bit Arm boards31 MBsha256
core-geth-alltools-linux-v1.13.0.zipx86_64: most servers and desktops213 MBsha256
core-geth-alltools-arm64-v1.13.0.zipaarch64 or arm64: Raspberry Pi on a 64-bit OS, AWS Graviton, Ampere194 MBsha256
core-geth-alltools-arm7-v1.13.0.ziparmv7l: Raspberry Pi on a 32-bit OS, and other 32-bit boards205 MBsha256
core-geth-alltools-arm6-v1.13.0.ziparmv6l: older Raspberry Pi205 MBsha256
core-geth-alltools-arm5-v1.13.0.ziparmv5tel and other armv5: embedded boards207 MBsha256
core-geth-alltools-arm-v1.13.0.zipOther 32-bit Arm boards207 MBsha256

macOS

Download the release, check it and install it

curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-osx-arm64-v1.13.0.zip
curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-osx-arm64-v1.13.0.zip.sha256
shasum -a 256 -c core-geth-osx-arm64-v1.13.0.zip.sha256 &&
  unzip -o core-geth-osx-arm64-v1.13.0.zip &&
  sudo mkdir -p /usr/local/bin &&
  sudo install -m 0755 geth /usr/local/bin/geth &&
  geth version

shasum -a 256 -c must print OK: if it prints FAILED, delete the file and download it again rather than running it. On an Intel Mac, put osx where the file names say osx-arm64. A browser download carries the quarantine attribute, which macOS blocks: xattr -d com.apple.quarantine geth clears it.

Start a node on Ethereum Classic

geth --classic

For the Mordor test network, run geth --mordor instead.

macOS users guide

Every file in this release

Built for macOS 12 and newer. macOS blocks a downloaded binary until it is allowed.

FileYour machineSizeChecksum
core-geth-osx-arm64-v1.13.0.zipApple Silicon, M1 and later17 MBsha256
core-geth-osx-v1.13.0.zipIntel Macs19 MBsha256
core-geth-alltools-osx-arm64-v1.13.0.zipApple Silicon, M1 and later110 MBsha256
core-geth-alltools-osx-v1.13.0.zipIntel Macs120 MBsha256

Windows

Download the release and check it

# In PowerShell
Invoke-WebRequest "https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-win64-v1.13.0.zip" -OutFile "core-geth-win64-v1.13.0.zip"
Invoke-WebRequest "https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-win64-v1.13.0.zip.sha256" -OutFile "core-geth-win64-v1.13.0.zip.sha256"

# Compare these two lines
(Get-FileHash "core-geth-win64-v1.13.0.zip" -Algorithm SHA256).Hash
Get-Content "core-geth-win64-v1.13.0.zip.sha256"

Compare those two lines yourself: the letters must match and the case need not, since Get-FileHash prints uppercase and the .sha256 file holds lowercase followed by the file name. If they differ, delete the file and download it again rather than running it.

If the two lines match, unpack the release

Expand-Archive "core-geth-win64-v1.13.0.zip" -DestinationPath C:\core-geth -Force
C:\core-geth\geth.exe version

The first line geth.exe version prints must name a v1.13 release.

Start a node on Ethereum Classic

cd C:\core-geth
.\geth.exe --classic

For the Mordor test network, run .\geth.exe --mordor instead.

Windows users guide

Every file in this release

Windows names the publisher as unknown on a first run.

FileYour machineSizeChecksum
core-geth-win64-v1.13.0.zip64-bit Windows33 MBsha256
core-geth-alltools-win64-v1.13.0.zip64-bit Windows216 MBsha256

Containers

Check Docker and the GitHub CLI

These steps need Docker to pull and run the image, and the GitHub CLI to check where the image came from:

docker version --format '{{.Server.Version}}'
gh --version
gh auth status

The first line must print the Docker engine's version. An error in its place means Docker is not installed or not running: Get Docker says how to install it. gh --version must print 2.49.0 or later, the release that added gh attestation. gh auth status must say you are logged in to github.com. If it does not, run gh auth login. Install or update the GitHub CLI from cli.github.com. On Debian and Ubuntu, take GitHub's own package: theirs are older than 2.49.0.

Pull the published image and check where it came from

docker pull ghcr.io/ethereumclassic/core-geth:latest
gh attestation verify oci://ghcr.io/ethereumclassic/core-geth:latest --repo ethereumclassic/core-geth

gh attestation verify must print Verification succeeded and name .github/workflows/docker-publish.yml. If it does not, do not run the image.

Start a node, keeping the chain in a named volume

docker run --rm ghcr.io/ethereumclassic/core-geth:latest version
docker run -d --name core-geth-classic \
    --restart unless-stopped --stop-timeout 300 \
    -v core-geth-classic:/root \
    -p 30303:30303 -p 30303:30303/udp \
    ghcr.io/ethereumclassic/core-geth:latest --classic

The first line confirms that the image runs. The volume is mounted at /root, so the chain survives the container being replaced. For Mordor, run the same command with core-geth-mordor as the container and volume name and --mordor as the flag.

Docker users guide

Every file in this release

A tarball to load into a local daemon. Pulling the published image is the usual route.

FileYour machineSizeChecksum
core-geth-docker-amd64-v1.13.0.tar.gzlinux/amd64 hosts37 MBsha256
core-geth-docker-arm64-v1.13.0.tar.gzlinux/arm64 hosts35 MBsha256
core-geth-alltools-docker-amd64-v1.13.0.tar.gzlinux/amd64 hosts226 MBsha256
core-geth-alltools-docker-arm64-v1.13.0.tar.gzlinux/arm64 hosts207 MBsha256

Source

github.com/ethereumclassic/core-geth

Each tab starts from a machine with none of the build tools: it installs them, checks each one's version, and builds the main branch.

Choose your platform for building from source

Build from source on Linux

Install Git, a C compiler and make

On Debian or Ubuntu:

sudo apt-get update && sudo apt-get install -y build-essential git curl

On Fedora or RHEL, run sudo dnf install -y --refresh gcc make git && sudo dnf upgrade -y gcc make git instead, and on Arch, sudo pacman -Syu --needed base-devel git, which brings the rest of the system current with them, as Arch requires. Each line also updates a tool that is already installed. build-essential and base-devel carry the C compiler and make, and the next step downloads with curl.

Install Go 1.26.8

main pins Go 1.26.8 in its build/checksums.txt, the Go its release builds use. This installs Go 1.26.8 from the Go project's downloads at go.dev, and checks the download against the SHA-256 the same file pins:

curl -LO https://go.dev/dl/go1.26.8.linux-amd64.tar.gz
echo "d0f743b33e8d8945e6b1f432edd15785c70507121d6e2a723b21285eddf8b57b  go1.26.8.linux-amd64.tar.gz" | sha256sum -c &&
  sudo rm -rf /usr/local/go &&
  sudo tar -C /usr/local -xzf go1.26.8.linux-amd64.tar.gz &&
  sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go &&
  hash -r &&
  go version

sha256sum -c must print OK: if it prints FAILED, delete the file and download it again rather than installing it. The block replaces any Go in /usr/local/go, and go version must then print go1.26.8. On a 64-bit Arm machine, where uname -m prints aarch64, put go1.26.8.linux-arm64.tar.gz in place of the file name and 211ffced9dcb9633a55eac6364816ec0ddd951389a740e88fa8b3337971bdda0 in place of the SHA-256. On 32-bit Arm, use go1.26.8.linux-armv6l.tar.gz and eab440beabf395870752021fa74cedf04f97b61e43ebbe005ecbb98b94e55697.

Check the tools
git --version
go version
gcc --version
make --version

Each line must print a version, and go version must print go1.26.8. A line that prints an error names a tool the steps above did not install. If go version prints another release, a Go earlier on PATH than /usr/local/bin runs in its place: uninstall that Go.

Build the main branch
git clone --branch main --single-branch https://github.com/ethereumclassic/core-geth.git &&
  cd core-geth &&
  make geth &&
  ./build/bin/geth version

main carries patches and dependency updates before a release does: every change reaches it through a pull request that needs an approving review and the project's required checks. It keeps moving, so two builds a day apart can be different code. It is not a release: until a release is prepared, geth version ends its first line with -unstable, and its Git Commit line names the commit you built. An existing core-geth folder stops this block at the clone rather than building an old copy: to build main again, run git pull in that folder and build there, or remove the folder first.

Install the build
ls build/bin/geth &&
  sudo install -m 0755 build/bin/geth /usr/local/bin/geth &&
  geth version

Run this in the folder the build step left you in: the first line stops the block anywhere else. geth version must print the same first line and Git Commit line the build printed.

Start a node on Ethereum Classic
geth --classic

For the Mordor test network, run geth --mordor instead.

Build from source

Build from source on macOS

Install the Xcode Command Line Tools
xcode-select --install

A window asks whether to install the tools: choose Install, and wait until it says the software was installed. The tools carry Git, the C compiler and make. If they are already installed, the command says so: install any update for them that Software Update lists in System Settings, then go on to the next step.

On an Apple Silicon Mac, install Go 1.26.8

main pins Go 1.26.8 in its build/checksums.txt, the Go its release builds use. This installs Go 1.26.8 from the Go project's downloads at go.dev, and checks the download against the SHA-256 the same file pins. uname -m prints arm64 on Apple Silicon and x86_64 on Intel:

curl -LO https://go.dev/dl/go1.26.8.darwin-arm64.tar.gz
echo "a012b25b571bd0138a03dcd25375ceba866fe5ca822f426d2c66a4de56fd3f4b  go1.26.8.darwin-arm64.tar.gz" | shasum -a 256 -c &&
  sudo rm -rf /usr/local/go &&
  sudo tar -C /usr/local -xzf go1.26.8.darwin-arm64.tar.gz &&
  sudo mkdir -p /usr/local/bin &&
  sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go &&
  hash -r &&
  go version

shasum -a 256 -c must print OK: if it prints FAILED, delete the file and download it again rather than installing it. The block replaces any Go in /usr/local/go, and go version must then print go1.26.8.

On an Intel Mac, install Go 1.26.8

The same release, built for Intel:

curl -LO https://go.dev/dl/go1.26.8.darwin-amd64.tar.gz
echo "186be014105aa6542b767d2c6ed5cca10a0214bdff809ef1724022a8c7894150  go1.26.8.darwin-amd64.tar.gz" | shasum -a 256 -c &&
  sudo rm -rf /usr/local/go &&
  sudo tar -C /usr/local -xzf go1.26.8.darwin-amd64.tar.gz &&
  sudo mkdir -p /usr/local/bin &&
  sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go &&
  hash -r &&
  go version

shasum -a 256 -c must print OK: if it prints FAILED, delete the file and download it again rather than installing it. The block replaces any Go in /usr/local/go, and go version must then print go1.26.8.

Check the tools
git --version
go version
gcc --version
make --version

Each line must print a version, and go version must print go1.26.8. gcc --version prints Apple clang, the C compiler on macOS. A line that prints an error names a tool the steps above did not install. If go version prints another release, a Go earlier on PATH, such as one from Homebrew, runs in its place: uninstall that Go.

Build the main branch
git clone --branch main --single-branch https://github.com/ethereumclassic/core-geth.git &&
  cd core-geth &&
  make geth &&
  ./build/bin/geth version

main carries patches and dependency updates before a release does: every change reaches it through a pull request that needs an approving review and the project's required checks. It keeps moving, so two builds a day apart can be different code. It is not a release: until a release is prepared, geth version ends its first line with -unstable, and its Git Commit line names the commit you built. An existing core-geth folder stops this block at the clone rather than building an old copy: to build main again, run git pull in that folder and build there, or remove the folder first.

Install the build
ls build/bin/geth &&
  sudo mkdir -p /usr/local/bin &&
  sudo install -m 0755 build/bin/geth /usr/local/bin/geth &&
  geth version

Run this in the folder the build step left you in: the first line stops the block anywhere else. geth version must print the same first line and Git Commit line the build printed.

Start a node on Ethereum Classic
geth --classic

For the Mordor test network, run geth --mordor instead.

Build from source

Build from source on Windows

Check for Chocolatey

In a PowerShell window opened with Run as administrator, which the Chocolatey steps need:

choco --version

If PowerShell says the term is not recognized, Chocolatey is not installed: take the next step. If the version starts with 1, skip the next step and take the one after it. If it starts with 2, go to "Update Chocolatey, then install Git and a C compiler".

If Chocolatey is not installed, install it

WinGet, which comes with Windows 11, installs Chocolatey from its publisher:

winget install --id Chocolatey.Chocolatey -e --source winget --accept-source-agreements --accept-package-agreements

Approve the prompt the installer shows. Then open a new PowerShell window with Run as administrator for the next steps: a window opened before the install does not find Chocolatey.

If Chocolatey is version 1, move it to 1.4.0 first
choco upgrade chocolatey --version 1.4.0 --allow-downgrade -y

Chocolatey's guide to version 2 moves a version 1 to 1.4.0 before the upgrade to version 2, which the next step makes. Skip this step on version 2: it would downgrade Chocolatey.

Update Chocolatey, then install Git and a C compiler
choco upgrade chocolatey -y
choco upgrade mingw git -y
choco --version

choco upgrade installs what is missing and moves what is installed to its current release, so an older Chocolatey, Git or MinGW-w64 is updated rather than kept. The last line must print a version starting with 2. If the first line asks for a restart to install .NET Framework 4.8, which Chocolatey 2 needs, restart and run this block again. mingw is MinGW-w64, the C compiler cgo needs on Windows. The next two steps can run in this window.

Download Go 1.26.8 and check it

main pins Go 1.26.8 in its build/checksums.txt, the Go its release builds use. This downloads the Go 1.26.8 installer from the Go project's downloads at go.dev, and checks the download against the SHA-256 go.dev publishes for the installer. An administrator window opens in C:\Windows\System32, so the first line moves to your home folder:

cd $HOME
Invoke-WebRequest "https://go.dev/dl/go1.26.8.windows-amd64.msi" -OutFile "go1.26.8.windows-amd64.msi"
(Get-FileHash "go1.26.8.windows-amd64.msi" -Algorithm SHA256).Hash -eq "0581e37d54c8f2876c447204737d4aaa3f65f983005c65a1d5186b5f18ae3eca"

The last line must print True. If it prints False, delete the file and download it again rather than running it.

If the check printed True, run the Go installer
msiexec /i "$HOME\go1.26.8.windows-amd64.msi" /passive | Out-Null

The installer shows a progress bar and takes its defaults, which put Go in C:\Program Files\Go and on PATH. The line returns once it has finished.

Check the tools

In the same window:

$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User")
git --version
go version
gcc --version

The first line reloads PATH from Windows' settings, so this window finds what the steps above installed. Each line after it must print a version, and go version must print go1.26.8. A line saying the term is not recognized names a tool the steps above did not install.

Build the main branch
cd $HOME
git clone --branch main --single-branch https://github.com/ethereumclassic/core-geth.git
cd core-geth
go run build/ci.go install ./cmd/geth
.\build\bin\geth.exe version

main carries patches and dependency updates before a release does: every change reaches it through a pull request that needs an approving review and the project's required checks. It keeps moving, so two builds a day apart can be different code. It is not a release: until a release is prepared, geth version ends its first line with -unstable, and its Git Commit line names the commit you built. Run these in PowerShell, one line at a time. If git clone reports that core-geth already exists, run git pull in that folder before the build line.

Install the build
New-Item -ItemType Directory -Force C:\core-geth | Out-Null
Copy-Item .\build\bin\geth.exe C:\core-geth\geth.exe
C:\core-geth\geth.exe version

Run these in the core-geth folder the build step left you in. The last line must print the same first line and Git Commit line the build printed. C:\core-geth is where the Windows download puts the client, so a node starts the same way from either.

Start a node on Ethereum Classic
cd C:\core-geth
.\geth.exe --classic

For the Mordor test network, run .\geth.exe --mordor instead.

Build from source

An alltools archive is the same client with the rest of the tools beside it: abigen, clef, evm, rlpdump and the others. To run a node, take the plain archive.

Moving a Core-Geth v1.12 node

Move a v1.12 node to the v1.13 line

Every node still on a v1.12 release should move to the v1.13 line. From v1.12.17 on, your chain data carries over. Budget about twenty minutes for the steps; the node is down only between its stop and its start, and each of those takes seconds. A node on a release before v1.12.17 resyncs instead, as Migrate Core-Geth explains. Follow the steps for your platform below rather than the install steps at the top of this page, which start a node before its P2P node key changes. These steps keep your old binary or container so you can roll back while you find what went wrong, rotate the key before the node starts again, and end by deleting the old binary once the node is stable. The rotation is required: one of the flaws in the v1.12 line leaks bits of the P2P node key across repeated handshakes, and no fix can take back what already leaked.

Choose your platform for moving a node

Linux

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Install curl and unzip

The node can keep running for this step. On Debian or Ubuntu:

sudo apt-get update && sudo apt-get install -y curl unzip

On Fedora or RHEL, run sudo dnf install -y --refresh curl unzip && sudo dnf upgrade -y curl unzip instead, and on Arch, sudo pacman -Syu --needed curl unzip. Each line also updates curl and unzip if they are already installed.

Download the release and check it

curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-linux-v1.13.0.zip
curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-linux-v1.13.0.zip.sha256
sha256sum -c core-geth-linux-v1.13.0.zip.sha256

The node can keep running for this step. sha256sum -c must print OK: if it prints FAILED, delete the file and download it again rather than running it. Verify what you downloaded also checks where the file came from. On an Arm machine, put the name for your processor where the file name says linux, here and in "Install the release": arm64 if uname -m prints aarch64 or arm64, arm7 for armv7l, arm6 for armv6l, and arm5 for armv5tel.

Record the node's block number and ID

geth attach --exec 'eth.blockNumber' ~/.ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/.ethereum/classic/geth.ipc

Keep what this prints: "Confirm the move" compares the new ID and block number with it. These commands use the default data directory. For Mordor, use ~/.ethereum/mordor; if you pass --datadir, use yours. On the unit in the Linux run guide, the geth user owns /var/lib/core-geth, so attach as sudo -u geth -H geth --classic attach --exec 'admin.nodeInfo.enode' /var/lib/core-geth/geth.ipc instead, here and in every later attach line.

Stop the node cleanly

Press Ctrl-C once in the node's terminal and wait, or stop the systemd unit you wrote, for example sudo systemctl stop core-geth. Wait until the log prints Blockchain stopped and the process exits. If it exits without that line, the stop was not clean: the node recovers at its next start, and its block number can start lower than the one you recorded. Under systemd, journalctl -u core-geth shows that log.

Install the release

unzip -o core-geth-linux-v1.13.0.zip &&
  { test -e /usr/local/bin/geth-v1.12 || sudo mv /usr/local/bin/geth /usr/local/bin/geth-v1.12; } &&
  sudo install -m 0755 geth /usr/local/bin/geth &&
  geth version

Go on only if geth version reports a v1.13 release. geth-v1.12 is the old binary, kept so you can roll back. These commands install over /usr/local/bin/geth. If your unit or start command runs a geth at another path, use that path wherever they say /usr/local/bin/geth.

Rename the old P2P node key

mv -n ~/.ethereum/classic/geth/nodekey ~/.ethereum/classic/geth/nodekey.old-rotated-$(date +%F)

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts. On the unit in the Linux run guide, run sudo -u geth mv -n /var/lib/core-geth/geth/nodekey /var/lib/core-geth/geth/nodekey.old-rotated-$(date +%F) instead.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Start the node

sudo systemctl daemon-reload && sudo systemctl start core-geth

core-geth stands for the systemd unit you wrote, and the reload picks up any flag you changed in that unit. From a terminal, run geth --classic instead, with the flags you just checked, --mess or --mess=false among them, and any other flag you start the node with, then run the next steps in a second terminal.

Confirm the move

geth attach --exec 'admin.nodeInfo.name' ~/.ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/.ethereum/classic/geth.ipc
geth attach --exec 'net.peerCount' ~/.ethereum/classic/geth.ipc
geth attach --exec 'eth.blockNumber' ~/.ethereum/classic/geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name a v1.13 release. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has.

geth attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" ~/.ethereum/classic/geth.ipc
geth attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" ~/.ethereum/classic/geth.ipc
geth attach --exec "admin.peers.map(function(p){return p.enode})" ~/.ethereum/classic/geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

The data directory works with both lines, so rolling back swaps the binary. Stop the node, and take any --mess flag out of its start command, because a v1.12 binary refuses it. Under systemd, run sudo systemctl daemon-reload. Then put the old binary back, and start the node again:

sudo mv /usr/local/bin/geth-v1.12 /usr/local/bin/geth

Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(date +%F) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, delete the v1.12 binary

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back:

sudo rm /usr/local/bin/geth-v1.12

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start. If you installed over a geth at another path, delete the geth-v1.12 beside it instead.

Linux users guide

macOS

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Download the release and check it

curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-osx-arm64-v1.13.0.zip
curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-osx-arm64-v1.13.0.zip.sha256
shasum -a 256 -c core-geth-osx-arm64-v1.13.0.zip.sha256

The node can keep running for this step. shasum -a 256 -c must print OK: if it prints FAILED, delete the file and download it again rather than running it. Verify what you downloaded also checks where the file came from. On an Intel Mac, put osx where the file name says osx-arm64, here and in "Install the release".

Record the node's block number and ID

geth attach --exec 'eth.blockNumber' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/Library/Ethereum/classic/geth.ipc

Keep what this prints: "Confirm the move" compares the new ID and block number with it. These commands use the default data directory. For Mordor, use ~/Library/Ethereum/mordor; if you pass --datadir, use yours.

Stop the node cleanly

Press Ctrl-C once in the node's terminal and wait, or unload the launchd job. Stop it cleanly has the command for the run guide's agent. Wait until the log prints Blockchain stopped and the process exits. If it exits without that line, the stop was not clean: the node recovers at its next start, and its block number can start lower than the one you recorded.

Install the release

unzip -o core-geth-osx-arm64-v1.13.0.zip &&
  { test -e /usr/local/bin/geth-v1.12 || sudo mv /usr/local/bin/geth /usr/local/bin/geth-v1.12; } &&
  sudo install -m 0755 geth /usr/local/bin/geth &&
  geth version

Go on only if geth version reports a v1.13 release. geth-v1.12 is the old binary, kept so you can roll back. These commands install over /usr/local/bin/geth. If your unit or start command runs a geth at another path, use that path wherever they say /usr/local/bin/geth.

Rename the old P2P node key

mv -n ~/Library/Ethereum/classic/geth/nodekey ~/Library/Ethereum/classic/geth/nodekey.old-rotated-$(date +%F)

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Start the node

In a terminal. Add the flags you just checked to this line, --mess or --mess=false among them, and any other flag you start the node with: a node on --datadir started without it starts an empty chain in the default directory. If the node runs under the run guide's launchd agent, start the agent instead, as Keep it running shows:

geth --classic

The node runs in this terminal until you stop it, so run the next steps in a second terminal. For Mordor, use --mordor in place of --classic.

Confirm the move

geth attach --exec 'admin.nodeInfo.name' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'net.peerCount' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'eth.blockNumber' ~/Library/Ethereum/classic/geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name a v1.13 release. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has.

geth attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" ~/Library/Ethereum/classic/geth.ipc
geth attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" ~/Library/Ethereum/classic/geth.ipc
geth attach --exec "admin.peers.map(function(p){return p.enode})" ~/Library/Ethereum/classic/geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

The data directory works with both lines, so rolling back swaps the binary. Stop the node, and take any --mess flag out of its start command, because a v1.12 binary refuses it. Under systemd, run sudo systemctl daemon-reload. Then put the old binary back, and start the node again:

sudo mv /usr/local/bin/geth-v1.12 /usr/local/bin/geth

Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(date +%F) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, delete the v1.12 binary

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back:

sudo rm /usr/local/bin/geth-v1.12

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start. If you installed over a geth at another path, delete the geth-v1.12 beside it instead.

macOS users guide

Windows

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Download the release and check it

# In PowerShell, in the folder that holds your current geth.exe
Invoke-WebRequest "https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-win64-v1.13.0.zip" -OutFile "core-geth-win64-v1.13.0.zip"
Invoke-WebRequest "https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-win64-v1.13.0.zip.sha256" -OutFile "core-geth-win64-v1.13.0.zip.sha256"

# Compare these two lines
(Get-FileHash "core-geth-win64-v1.13.0.zip" -Algorithm SHA256).Hash
Get-Content "core-geth-win64-v1.13.0.zip.sha256"

The node can keep running for this step. Compare those two lines yourself: the letters must match and the case need not, since Get-FileHash prints uppercase and the .sha256 file holds lowercase followed by the file name. If they differ, delete the file and download it again rather than running it. Verify what you downloaded also checks where the file came from.

Record the node's block number and ID

.\geth.exe attach --exec 'eth.blockNumber' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'admin.nodeInfo.enode' \\.\pipe\geth.ipc

Keep what this prints: "Confirm the move" compares the new ID and block number with it.

Stop the node cleanly

Press Ctrl+C once in the node's console window and wait. A window opened from the Startup folder then asks Terminate batch job (Y/N)?; type Y. Under a service wrapper, stop it with that tool. Wait until the log prints Blockchain stopped and the process exits. If it exits without that line, the stop was not clean: the node recovers at its next start, and its block number can start lower than the one you recorded.

Install the release

Rename-Item .\geth.exe geth-v1.12.exe
Expand-Archive "core-geth-win64-v1.13.0.zip" -DestinationPath . -Force
.\geth.exe version

Go on only if .\geth.exe version reports a v1.13 release. geth-v1.12.exe is the old binary, kept so you can roll back.

Rename the old P2P node key

$key = "$env:LOCALAPPDATA\Ethereum\classic\geth\nodekey"
Rename-Item $key "nodekey.old-rotated-$(Get-Date -Format yyyy-MM-dd)"

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts. The commands use the default data directory, but the node uses %USERPROFILE%\AppData\Roaming\Ethereum\classic instead if an older AppData\Roaming\Ethereum folder exists and is not empty. For Mordor, use mordor in place of classic; if you pass --datadir, use yours.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here. Save the file as UTF-8 with no byte order mark, after this edit and any other. A byte order mark, or UTF-16, stops the start with invalid TOML syntax.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Start the node

In PowerShell, in the folder that holds the node's geth.exe. Add the flags you just checked to this line, --mess or --mess=false among them, and any other flag you start the node with: a node on --datadir started without it starts an empty chain in the default directory. If the node starts from the Startup folder, as the run guide's Keep it running sets up, run that command file instead:

.\geth.exe --classic

The node runs in this window until you stop it, so run the next steps in a second PowerShell window, in the same folder. For Mordor, use --mordor in place of --classic.

Confirm the move

.\geth.exe attach --exec 'admin.nodeInfo.name' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'admin.nodeInfo.enode' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'net.peerCount' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'eth.blockNumber' \\.\pipe\geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name a v1.13 release. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has.

.\geth.exe attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" \\.\pipe\geth.ipc
.\geth.exe attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" \\.\pipe\geth.ipc
.\geth.exe attach --exec "admin.peers.map(function(p){return p.enode})" \\.\pipe\geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

The data directory works with both lines, so rolling back swaps the binary. Stop the node, and take any --mess flag out of its start command, because a v1.12 binary refuses it. Then, in PowerShell, in the folder that holds the node's geth.exe, put the old binary back, and start the node again:

Remove-Item .\geth.exe
Rename-Item .\geth-v1.12.exe geth.exe

Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(Get-Date -Format yyyy-MM-dd) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, delete the v1.12 binary

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back, in PowerShell, in the folder that holds the node's geth.exe:

Remove-Item .\geth-v1.12.exe

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start.

Windows users guide

Containers

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Check Docker and the GitHub CLI

These steps need Docker to pull and run the image, and the GitHub CLI to check where the image came from:

docker version --format '{{.Server.Version}}'
gh --version
gh auth status

The node can keep running for this step. The first line must print the Docker engine's version. An error in its place means Docker is not installed or not running: Get Docker says how to install it. gh --version must print 2.49.0 or later, the release that added gh attestation. gh auth status must say you are logged in to github.com. If it does not, run gh auth login. Install or update the GitHub CLI from cli.github.com. On Debian and Ubuntu, take GitHub's own package: theirs are older than 2.49.0.

Pull the release

docker pull ghcr.io/ethereumclassic/core-geth:latest
gh attestation verify oci://ghcr.io/ethereumclassic/core-geth:latest --repo ethereumclassic/core-geth

The node can keep running for this step. gh attestation verify must print Verification succeeded and name .github/workflows/docker-publish.yml. If it does not, do not run the image. Verify what you downloaded checks an image file from the release. A loaded image file carries its release tag and no latest tag, so put that tag in place of latest in the steps below, or Docker pulls from the registry instead.

Record the node's block number, ID and restart policy

docker exec core-geth geth attach --exec 'eth.blockNumber' /root/.ethereum/classic/geth.ipc
docker exec core-geth geth attach --exec 'admin.nodeInfo.enode' /root/.ethereum/classic/geth.ipc
docker inspect core-geth --format '{{.HostConfig.RestartPolicy.Name}}'

Keep what this prints: "Confirm the move" compares the new ID and block number with it. The last line prints the container's restart policy, which the rollback puts back. These commands use a container named core-geth with its data at /root, so put your own name in its place. For Mordor, use .ethereum/mordor in the paths.

Check where the container keeps its data

docker inspect core-geth --format '{{range .Mounts}}{{.Destination}} {{end}}'

This prints /root, or /root/.ethereum, when the data is in a host directory or a named volume, which the steps below carry to the new container. If it prints neither, the data is inside the container itself: after the stop, take the copy step below in place of the rename, or the new container starts with no chain and resyncs.

Stop the node cleanly

docker stop -t 300 core-geth
docker logs --tail 50 core-geth 2>&1 | grep 'Blockchain stopped'

The second command prints Blockchain stopped after a clean stop. If it prints nothing, the node did not stop cleanly: it recovers at its next start, moving its head back and importing those blocks again (After an unclean stop), so its block number can start lower than the one you recorded. Use -t 300: a plain docker stop kills the node if it has not stopped within 10 seconds.

Rename the old P2P node key

If the check printed /root or /root/.ethereum:

docker run --rm --volumes-from core-geth --entrypoint sh ghcr.io/ethereumclassic/core-geth:latest \
  -c "mv -n /root/.ethereum/classic/geth/nodekey /root/.ethereum/classic/geth/nodekey.old-rotated-$(date +%F)"

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts.

If the data is inside the container, copy it out and rename the key there

If the check printed neither, run this in place of the rename above. It copies the data out of the stopped container and renames the key in the copy, which needs as much free space as the chain takes:

mkdir -p $HOME/core-geth-data &&
  docker cp core-geth:/root/. $HOME/core-geth-data/ &&
  docker run --rm -v $HOME/core-geth-data:/root --entrypoint sh ghcr.io/ethereumclassic/core-geth:latest \
    -c "mv -n /root/.ethereum/classic/geth/nodekey /root/.ethereum/classic/geth/nodekey.old-rotated-$(date +%F)"

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts. The chain comes with the copy, so the node does not resync.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here. To give the new container the file, add -v <path>/config.toml:/config.toml:ro to the docker run under "Replace the container", and --config /config.toml after the image name.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Replace the container

Before you run this block, put the old container's flags in its last line and its GETH_ variables in as -e options: docker inspect core-geth-v1.12 --format '{{json .Args}} {{json .Config.Env}}' prints both. Keep its two P2P port mappings. The RPC check applies to the published RPC port, which stays on 127.0.0.1 even if the old container published it everywhere; --http.addr 0.0.0.0 inside the container reaches only that port. If the old container ran with --network host, run this one that way too, without the -p options and with --http.addr 127.0.0.1. If you copied the data out, put -v $HOME/core-geth-data:/root in place of --volumes-from core-geth-v1.12.

docker rename core-geth core-geth-v1.12
docker update --restart no core-geth-v1.12
docker run -d --name core-geth \
  --restart unless-stopped --stop-timeout 300 \
  --volumes-from core-geth-v1.12 \
  -p 30303:30303 -p 30303:30303/udp -p 127.0.0.1:8545:8545 \
  ghcr.io/ethereumclassic/core-geth:latest \
  --classic --http --http.addr 0.0.0.0 --http.port 8545

For Mordor, use --mordor in place of --classic. The old container stays, stopped, and is what you roll back to.

Confirm the move

docker exec core-geth geth version
docker exec core-geth geth attach --exec 'admin.nodeInfo.enode' /root/.ethereum/classic/geth.ipc
docker exec core-geth geth attach --exec 'net.peerCount' /root/.ethereum/classic/geth.ipc
docker exec core-geth geth attach --exec 'eth.blockNumber' /root/.ethereum/classic/geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name a v1.13 release. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has. Put that node's container name in place of core-geth, which here is the node you just moved. On a node outside a container, run geth attach with that node's IPC path, as this section's other tabs show.

docker exec core-geth geth attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" /root/.ethereum/classic/geth.ipc
docker exec core-geth geth attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" /root/.ethereum/classic/geth.ipc
docker exec core-geth geth attach --exec "admin.peers.map(function(p){return p.enode})" /root/.ethereum/classic/geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

If you copied the data out, do not run this block, because the old container's own copy of the data still holds the old key. Stop and remove the new container as its first two lines do, then run the image the old one used, docker inspect core-geth-v1.12 --format '{{.Config.Image}}', on the copy, with -v $HOME/core-geth-data:/root, the old container's ports and flags, and no --mess.

docker stop -t 300 core-geth &&
  docker rm core-geth &&
  docker rename core-geth-v1.12 core-geth &&
  docker update --restart unless-stopped core-geth &&
  docker start core-geth

Put the restart policy you recorded in place of unless-stopped. Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(date +%F) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, remove the v1.12 container and image

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back:

OLD=$(docker inspect core-geth-v1.12 --format '{{.Config.Image}}') &&
  docker rm core-geth-v1.12 &&
  docker rmi "$OLD"

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start. The first line reads which image the old container ran, then the block removes the stopped container and that image. docker rm leaves the volumes the new container uses. If you copied the data out, the old container's own copy of the data goes with it, and the node runs on the copy. docker rmi refuses while another container still uses the image.

Docker users guide

Source

Each tab starts from a machine with none of the build tools: it installs them, builds the main branch, and moves the node on that platform.

Choose your platform for building from source and moving a node

Build from source and move the node on Linux

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Install Git, a C compiler and make

The node can keep running while you install the tools and build. On Debian or Ubuntu:

sudo apt-get update && sudo apt-get install -y build-essential git curl

On Fedora or RHEL, run sudo dnf install -y --refresh gcc make git && sudo dnf upgrade -y gcc make git instead, and on Arch, sudo pacman -Syu --needed base-devel git, which brings the rest of the system current with them, as Arch requires. Each line also updates a tool that is already installed. build-essential and base-devel carry the C compiler and make, and the next step downloads with curl.

Install Go 1.26.8

main pins Go 1.26.8 in its build/checksums.txt, the Go its release builds use. This installs Go 1.26.8 from the Go project's downloads at go.dev, and checks the download against the SHA-256 the same file pins:

curl -LO https://go.dev/dl/go1.26.8.linux-amd64.tar.gz
echo "d0f743b33e8d8945e6b1f432edd15785c70507121d6e2a723b21285eddf8b57b  go1.26.8.linux-amd64.tar.gz" | sha256sum -c &&
  sudo rm -rf /usr/local/go &&
  sudo tar -C /usr/local -xzf go1.26.8.linux-amd64.tar.gz &&
  sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go &&
  hash -r &&
  go version

sha256sum -c must print OK: if it prints FAILED, delete the file and download it again rather than installing it. The block replaces any Go in /usr/local/go, and go version must then print go1.26.8. On a 64-bit Arm machine, where uname -m prints aarch64, put go1.26.8.linux-arm64.tar.gz in place of the file name and 211ffced9dcb9633a55eac6364816ec0ddd951389a740e88fa8b3337971bdda0 in place of the SHA-256. On 32-bit Arm, use go1.26.8.linux-armv6l.tar.gz and eab440beabf395870752021fa74cedf04f97b61e43ebbe005ecbb98b94e55697.

Check the tools
git --version
go version
gcc --version
make --version

Each line must print a version, and go version must print go1.26.8. A line that prints an error names a tool the steps above did not install. If go version prints another release, a Go earlier on PATH than /usr/local/bin runs in its place: uninstall that Go.

Build the main branch
git clone --branch main --single-branch https://github.com/ethereumclassic/core-geth.git &&
  cd core-geth &&
  make geth &&
  ./build/bin/geth version

Go on only if the first line geth version prints names version 1.13 or later; a build of main ends it with -unstable, and two builds a day apart can be different code. Keep the Git Commit line: "Confirm the move" checks the running node against it. If a core-geth folder is already there, run git pull in it and build there, or remove it first. The Source tab under Install says why these steps build main.

Record the node's block number and ID
geth attach --exec 'eth.blockNumber' ~/.ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/.ethereum/classic/geth.ipc

Keep what this prints: "Confirm the move" compares the new ID and block number with it. These commands use the default data directory. For Mordor, use ~/.ethereum/mordor; if you pass --datadir, use yours. On the unit in the Linux run guide, the geth user owns /var/lib/core-geth, so attach as sudo -u geth -H geth --classic attach --exec 'admin.nodeInfo.enode' /var/lib/core-geth/geth.ipc instead, here and in every later attach line.

Stop the node cleanly

Press Ctrl-C once in the node's terminal and wait, or stop the systemd unit you wrote, for example sudo systemctl stop core-geth. Wait until the log prints Blockchain stopped and the process exits. If it exits without that line, the stop was not clean: the node recovers at its next start, and its block number can start lower than the one you recorded. Under systemd, journalctl -u core-geth shows that log.

Install the build
ls build/bin/geth &&
  { test -e /usr/local/bin/geth-v1.12 || sudo mv /usr/local/bin/geth /usr/local/bin/geth-v1.12; } &&
  sudo install -m 0755 build/bin/geth /usr/local/bin/geth &&
  geth version

Run this in the folder the build step left you in: the first line stops the block anywhere else. Go on only if geth version prints the same first line and Git Commit line it printed after the build. geth-v1.12 is the old binary, kept so you can roll back. These commands install over /usr/local/bin/geth. If your unit or start command runs a geth at another path, use that path wherever they say /usr/local/bin/geth.

Rename the old P2P node key
mv -n ~/.ethereum/classic/geth/nodekey ~/.ethereum/classic/geth/nodekey.old-rotated-$(date +%F)

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts. On the unit in the Linux run guide, run sudo -u geth mv -n /var/lib/core-geth/geth/nodekey /var/lib/core-geth/geth/nodekey.old-rotated-$(date +%F) instead.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Start the node
sudo systemctl daemon-reload && sudo systemctl start core-geth

core-geth stands for the systemd unit you wrote, and the reload picks up any flag you changed in that unit. From a terminal, run geth --classic instead, with the flags you just checked, --mess or --mess=false among them, and any other flag you start the node with, then run the next steps in a second terminal.

Confirm the move
geth attach --exec 'admin.nodeInfo.name' ~/.ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/.ethereum/classic/geth.ipc
geth attach --exec 'net.peerCount' ~/.ethereum/classic/geth.ipc
geth attach --exec 'eth.blockNumber' ~/.ethereum/classic/geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name the version the build printed, followed by the first eight characters of its Git Commit. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has.

geth attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" ~/.ethereum/classic/geth.ipc
geth attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" ~/.ethereum/classic/geth.ipc
geth attach --exec "admin.peers.map(function(p){return p.enode})" ~/.ethereum/classic/geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

The data directory works with both lines, so rolling back swaps the binary. Stop the node, and take any --mess flag out of its start command, because a v1.12 binary refuses it. Under systemd, run sudo systemctl daemon-reload. Then put the old binary back, and start the node again:

sudo mv /usr/local/bin/geth-v1.12 /usr/local/bin/geth

Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(date +%F) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, delete the v1.12 binary

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back:

sudo rm /usr/local/bin/geth-v1.12

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start. If you installed over a geth at another path, delete the geth-v1.12 beside it instead.

Linux users guide

Build from source and move the node on macOS

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Install the Xcode Command Line Tools

The node can keep running while you install the tools and build.

xcode-select --install

A window asks whether to install the tools: choose Install, and wait until it says the software was installed. The tools carry Git, the C compiler and make. If they are already installed, the command says so: install any update for them that Software Update lists in System Settings, then go on to the next step.

On an Apple Silicon Mac, install Go 1.26.8

main pins Go 1.26.8 in its build/checksums.txt, the Go its release builds use. This installs Go 1.26.8 from the Go project's downloads at go.dev, and checks the download against the SHA-256 the same file pins. uname -m prints arm64 on Apple Silicon and x86_64 on Intel:

curl -LO https://go.dev/dl/go1.26.8.darwin-arm64.tar.gz
echo "a012b25b571bd0138a03dcd25375ceba866fe5ca822f426d2c66a4de56fd3f4b  go1.26.8.darwin-arm64.tar.gz" | shasum -a 256 -c &&
  sudo rm -rf /usr/local/go &&
  sudo tar -C /usr/local -xzf go1.26.8.darwin-arm64.tar.gz &&
  sudo mkdir -p /usr/local/bin &&
  sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go &&
  hash -r &&
  go version

shasum -a 256 -c must print OK: if it prints FAILED, delete the file and download it again rather than installing it. The block replaces any Go in /usr/local/go, and go version must then print go1.26.8.

On an Intel Mac, install Go 1.26.8

The same release, built for Intel:

curl -LO https://go.dev/dl/go1.26.8.darwin-amd64.tar.gz
echo "186be014105aa6542b767d2c6ed5cca10a0214bdff809ef1724022a8c7894150  go1.26.8.darwin-amd64.tar.gz" | shasum -a 256 -c &&
  sudo rm -rf /usr/local/go &&
  sudo tar -C /usr/local -xzf go1.26.8.darwin-amd64.tar.gz &&
  sudo mkdir -p /usr/local/bin &&
  sudo ln -sf /usr/local/go/bin/go /usr/local/bin/go &&
  hash -r &&
  go version

shasum -a 256 -c must print OK: if it prints FAILED, delete the file and download it again rather than installing it. The block replaces any Go in /usr/local/go, and go version must then print go1.26.8.

Check the tools
git --version
go version
gcc --version
make --version

Each line must print a version, and go version must print go1.26.8. gcc --version prints Apple clang, the C compiler on macOS. A line that prints an error names a tool the steps above did not install. If go version prints another release, a Go earlier on PATH, such as one from Homebrew, runs in its place: uninstall that Go.

Build the main branch
git clone --branch main --single-branch https://github.com/ethereumclassic/core-geth.git &&
  cd core-geth &&
  make geth &&
  ./build/bin/geth version

Go on only if the first line geth version prints names version 1.13 or later; a build of main ends it with -unstable, and two builds a day apart can be different code. Keep the Git Commit line: "Confirm the move" checks the running node against it. If a core-geth folder is already there, run git pull in it and build there, or remove it first. The Source tab under Install says why these steps build main.

Record the node's block number and ID
geth attach --exec 'eth.blockNumber' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/Library/Ethereum/classic/geth.ipc

Keep what this prints: "Confirm the move" compares the new ID and block number with it. These commands use the default data directory. For Mordor, use ~/Library/Ethereum/mordor; if you pass --datadir, use yours.

Stop the node cleanly

Press Ctrl-C once in the node's terminal and wait, or unload the launchd job. Stop it cleanly has the command for the run guide's agent. Wait until the log prints Blockchain stopped and the process exits. If it exits without that line, the stop was not clean: the node recovers at its next start, and its block number can start lower than the one you recorded.

Install the build
ls build/bin/geth &&
  { test -e /usr/local/bin/geth-v1.12 || sudo mv /usr/local/bin/geth /usr/local/bin/geth-v1.12; } &&
  sudo install -m 0755 build/bin/geth /usr/local/bin/geth &&
  geth version

Run this in the folder the build step left you in: the first line stops the block anywhere else. Go on only if geth version prints the same first line and Git Commit line it printed after the build. geth-v1.12 is the old binary, kept so you can roll back. These commands install over /usr/local/bin/geth. If your unit or start command runs a geth at another path, use that path wherever they say /usr/local/bin/geth.

Rename the old P2P node key
mv -n ~/Library/Ethereum/classic/geth/nodekey ~/Library/Ethereum/classic/geth/nodekey.old-rotated-$(date +%F)

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Start the node

In a terminal. Add the flags you just checked to this line, --mess or --mess=false among them, and any other flag you start the node with: a node on --datadir started without it starts an empty chain in the default directory. If the node runs under the run guide's launchd agent, start the agent instead, as Keep it running shows:

geth --classic

The node runs in this terminal until you stop it, so run the next steps in a second terminal. For Mordor, use --mordor in place of --classic.

Confirm the move
geth attach --exec 'admin.nodeInfo.name' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'admin.nodeInfo.enode' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'net.peerCount' ~/Library/Ethereum/classic/geth.ipc
geth attach --exec 'eth.blockNumber' ~/Library/Ethereum/classic/geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name the version the build printed, followed by the first eight characters of its Git Commit. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has.

geth attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" ~/Library/Ethereum/classic/geth.ipc
geth attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" ~/Library/Ethereum/classic/geth.ipc
geth attach --exec "admin.peers.map(function(p){return p.enode})" ~/Library/Ethereum/classic/geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

The data directory works with both lines, so rolling back swaps the binary. Stop the node, and take any --mess flag out of its start command, because a v1.12 binary refuses it. Under systemd, run sudo systemctl daemon-reload. Then put the old binary back, and start the node again:

sudo mv /usr/local/bin/geth-v1.12 /usr/local/bin/geth

Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(date +%F) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, delete the v1.12 binary

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back:

sudo rm /usr/local/bin/geth-v1.12

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start. If you installed over a geth at another path, delete the geth-v1.12 beside it instead.

macOS users guide

Build from source and move the node on Windows

Optional: if you have not run v1.13 yet, sync one new node first

Best practice before you move a v1.12 node: set up one new node on the v1.13 line, on a machine of its own beside the nodes you run, by following Install Core-Geth, and point no RPC clients or miners at it. It can sync from the network, or start from a copy of a stopped v1.12 node's data directory without its geth/nodekey. Once eth.syncing returns false and net.peerCount is above zero (How to tell it is done), move each v1.12 node with the steps below.

Check for Chocolatey

The node can keep running while you install the tools and build. In a PowerShell window opened with Run as administrator, which the Chocolatey steps need:

choco --version

If PowerShell says the term is not recognized, Chocolatey is not installed: take the next step. If the version starts with 1, skip the next step and take the one after it. If it starts with 2, go to "Update Chocolatey, then install Git and a C compiler".

If Chocolatey is not installed, install it

WinGet, which comes with Windows 11, installs Chocolatey from its publisher:

winget install --id Chocolatey.Chocolatey -e --source winget --accept-source-agreements --accept-package-agreements

Approve the prompt the installer shows. Then open a new PowerShell window with Run as administrator for the next steps: a window opened before the install does not find Chocolatey.

If Chocolatey is version 1, move it to 1.4.0 first
choco upgrade chocolatey --version 1.4.0 --allow-downgrade -y

Chocolatey's guide to version 2 moves a version 1 to 1.4.0 before the upgrade to version 2, which the next step makes. Skip this step on version 2: it would downgrade Chocolatey.

Update Chocolatey, then install Git and a C compiler
choco upgrade chocolatey -y
choco upgrade mingw git -y
choco --version

choco upgrade installs what is missing and moves what is installed to its current release, so an older Chocolatey, Git or MinGW-w64 is updated rather than kept. The last line must print a version starting with 2. If the first line asks for a restart to install .NET Framework 4.8, which Chocolatey 2 needs, restart and run this block again. mingw is MinGW-w64, the C compiler cgo needs on Windows. The next two steps can run in this window.

Download Go 1.26.8 and check it

main pins Go 1.26.8 in its build/checksums.txt, the Go its release builds use. This downloads the Go 1.26.8 installer from the Go project's downloads at go.dev, and checks the download against the SHA-256 go.dev publishes for the installer. An administrator window opens in C:\Windows\System32, so the first line moves to your home folder:

cd $HOME
Invoke-WebRequest "https://go.dev/dl/go1.26.8.windows-amd64.msi" -OutFile "go1.26.8.windows-amd64.msi"
(Get-FileHash "go1.26.8.windows-amd64.msi" -Algorithm SHA256).Hash -eq "0581e37d54c8f2876c447204737d4aaa3f65f983005c65a1d5186b5f18ae3eca"

The last line must print True. If it prints False, delete the file and download it again rather than running it.

If the check printed True, run the Go installer
msiexec /i "$HOME\go1.26.8.windows-amd64.msi" /passive | Out-Null

The installer shows a progress bar and takes its defaults, which put Go in C:\Program Files\Go and on PATH. The line returns once it has finished.

Check the tools

In the same window:

$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User")
git --version
go version
gcc --version

The first line reloads PATH from Windows' settings, so this window finds what the steps above installed. Each line after it must print a version, and go version must print go1.26.8. A line saying the term is not recognized names a tool the steps above did not install.

Build the main branch
cd $HOME
git clone --branch main --single-branch https://github.com/ethereumclassic/core-geth.git
cd core-geth
go run build/ci.go install ./cmd/geth
.\build\bin\geth.exe version

Go on only if the first line geth version prints names version 1.13 or later; a build of main ends it with -unstable, and two builds a day apart can be different code. Keep the Git Commit line: "Confirm the move" checks the running node against it. Run these one line at a time. If git clone reports that core-geth already exists, run git pull in that folder before the build line. The Source tab under Install says why these steps build main.

Record the node's block number and ID

In PowerShell, in the folder that holds the node's geth.exe, such as C:\core-geth:

.\geth.exe attach --exec 'eth.blockNumber' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'admin.nodeInfo.enode' \\.\pipe\geth.ipc

Keep what this prints: "Confirm the move" compares the new ID and block number with it.

Stop the node cleanly

Press Ctrl+C once in the node's console window and wait. A window opened from the Startup folder then asks Terminate batch job (Y/N)?; type Y. Under a service wrapper, stop it with that tool. Wait until the log prints Blockchain stopped and the process exits. If it exits without that line, the stop was not clean: the node recovers at its next start, and its block number can start lower than the one you recorded.

Install the build

In the same folder:

Rename-Item .\geth.exe geth-v1.12.exe
Copy-Item "$HOME\core-geth\build\bin\geth.exe" .\geth.exe
.\geth.exe version

Go on only if .\geth.exe version prints the same first line and Git Commit line the build printed. geth-v1.12.exe is the old binary, kept so you can roll back. The second line copies the build from core-geth in your home folder, where the build step cloned it.

Rename the old P2P node key
$key = "$env:LOCALAPPDATA\Ethereum\classic\geth\nodekey"
Rename-Item $key "nodekey.old-rotated-$(Get-Date -Format yyyy-MM-dd)"

The next start writes a fresh key. If you start the node with --nodekey or --nodekeyhex, or set GETH_NODEKEY or GETH_NODEKEYHEX, take that out too: it overrides the file. If the rename prints an error, check the data directory: geth/nodekey must not be there when the node starts. The commands use the default data directory, but the node uses %USERPROFILE%\AppData\Roaming\Ethereum\classic instead if an older AppData\Roaming\Ethereum folder exists and is not empty. For Mordor, use mordor in place of classic; if you pass --datadir, use yours.

If this node lists static peers, update the list

They are under [Node.P2P] in the file you pass with --config. Edit it while the node is down:

[Node.P2P]
StaticNodes = ["enode://<node ID>@<IP>:30303"]

A peer that has already moved has a new ID, so use that. Separate entries with commas. TrustedNodes takes the same entries. With no file yet, save these two lines and add --config and the file's path to the start command. The client ignores static-nodes.json, so move its entries here. Save the file as UTF-8 with no byte order mark, after this edit and any other. A byte order mark, or UTF-16, stops the start with invalid TOML syntax.

Check the flags and settings you start the node with

While the node is down, decide MESS, which makes a node resist deep chain reorganizations. An upgrade can change whether a node runs MESS, so set it yourself: --mess turns it on and --mess=false turns it off. Which setting fits which operator sets out the choice. An exchange setting its confirmation policy can use the MESS confirmation calculator to see what that policy asks of an attacker. Give every node you run the same setting. Take out any --discovery.dns or --bootnodes flag added on v1.12, the two Keep a v1.12 node finding peers adds among them: the v1.13 line reads its own lists and bootnodes, --bootnodes would hold the node to the bootnodes it names, and with --discovery.dns it reads no snap lists. If the node starts with --config, delete the file's BootstrapNodes, EthDiscoveryURLs and SnapDiscoveryURLs lines, unless you put them there to name bootnodes or lists other than the release's own: a file dumpconfig wrote on v1.12 has all three, and the node keeps what they name in place of what the v1.13 line ships. The lists that guide puts in a file are the release's own, so delete those too. BootstrapNodesV5 can stay: the v1.13 line puts its own discovery v5 bootnodes in place of the ones a v1.12 file holds. Then go through the RPC exposure checklist for the flags, any GETH_ environment variables, and the file's [Node] settings: HTTPHost, HTTPModules, HTTPCors, WSHost, WSModules and WSOrigins.

Start the node

In PowerShell, in the folder that holds the node's geth.exe. Add the flags you just checked to this line, --mess or --mess=false among them, and any other flag you start the node with: a node on --datadir started without it starts an empty chain in the default directory. If the node starts from the Startup folder, as the run guide's Keep it running sets up, run that command file instead:

.\geth.exe --classic

The node runs in this window until you stop it, so run the next steps in a second PowerShell window, in the same folder. For Mordor, use --mordor in place of --classic.

Confirm the move
.\geth.exe attach --exec 'admin.nodeInfo.name' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'admin.nodeInfo.enode' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'net.peerCount' \\.\pipe\geth.ipc
.\geth.exe attach --exec 'eth.blockNumber' \\.\pipe\geth.ipc

If an attach line cannot connect, wait a minute and run it again. The first line must name the version the build printed, followed by the first eight characters of its Git Commit. The enode ID must differ from the one you recorded. If it is the same, the node is still on the old key: stop it and redo the rename step. The peer count climbs within minutes. If it is still zero after five minutes, see Why does the node have no peers?, and if the lists and bootnodes have gone dark, start it once from the node records committed in ethereumclassic/discv4-dns-lists. The block number starts near the one you recorded, or lower after an unclean stop, and climbs to the network's head: compare it with a block explorer or another node you run. If it stops climbing short of the head, investigate rather than resync.

If other nodes list this node, give them the new ID

They can no longer connect to this node, and neither side logs it at the default verbosity. On each one, on v1.12 or v1.13, run these lines with the old ID you recorded, the new ID from the step above, and the address and port the entry already has.

.\geth.exe attach --exec "admin.removePeer('enode://<old ID>@<IP>:30303')" \\.\pipe\geth.ipc
.\geth.exe attach --exec "admin.addPeer('enode://<new ID>@<IP>:30303')" \\.\pipe\geth.ipc
.\geth.exe attach --exec "admin.peers.map(function(p){return p.enode})" \\.\pipe\geth.ipc

The first two lines each print true and take effect with no restart. The third lists the new ID once the nodes connect. The change lasts only until that node restarts, so put the new ID in that node's own config file too. Send the new ID to anyone else who lists this node. For an entry in TrustedNodes, use admin.removeTrustedPeer and admin.addTrustedPeer in place of the first two lines, or as well as them if the entry is in StaticNodes too. Neither opens a connection. Static and trusted peers explains the two lists.

If you need to roll back

The data directory works with both lines, so rolling back swaps the binary. Stop the node, and take any --mess flag out of its start command, because a v1.12 binary refuses it. Then, in PowerShell, in the folder that holds the node's geth.exe, put the old binary back, and start the node again:

Remove-Item .\geth.exe
Rename-Item .\geth-v1.12.exe geth.exe

Roll back only for as long as it takes to find what went wrong: every v1.12 release carries the flaws the audits found. Keep the new key: rolling back does not make the old key safe, and a release before v1.12.21 leaks bits of the key it runs with, so rolling back to one exposes the new key too. Once the cause is fixed, move again with these steps, renaming the key again. A second rename on the same day finds its target name taken, so add -2 after $(Get-Date -Format yyyy-MM-dd) in it. If the node has to stay back longer, Keep a v1.12 node finding peers keeps it finding peers.

Once the node is stable, delete the v1.12 binary

Once the node has caught up, holds peers, and has run on the v1.13 line long enough that you will not roll back, in PowerShell, in the folder that holds the node's geth.exe:

Remove-Item .\geth-v1.12.exe

Every v1.12 release carries the flaws the audits found, so a copy left on the machine is one a later mistake can start.

Windows users guide

The documentation's migration guide also says what else names this node.

If a v1.12 node cannot move yet

A v1.12 node that has to wait before it moves can keep finding peers. Keep a v1.12 node finding peers points it at the peer discovery lists and bootnodes the v1.13 line ships, with the steps for each platform and a config file, and shows how to start a node from the records in ethereumclassic/discv4-dns-lists if the lists and bootnodes ever go dark. It closes none of the flaws the audits found in the v1.12 line, so move the node as soon as you can.

Verify a Core-Geth download

Verify what you downloaded

The checksum says the file arrived intact. The attestation says which workflow built it, from which commit.

Choose your platform for checking a download

Linux

Check the GitHub CLI

Checking where a file came from needs the GitHub CLI, signed in to GitHub. Debian's and Ubuntu's own gh packages are older than 2.49.0, so install or update GitHub's own package, as Installing gh on Linux shows for each distribution. Then confirm the release and the sign-in:

gh --version
gh auth status

gh --version must print 2.49.0 or later, the release that added gh attestation. gh auth status must say you are logged in to github.com. If it does not, run gh auth login. The checksum line in the next step does not need the GitHub CLI.

Check an archive

# 1. Check that the archive arrived intact
sha256sum -c core-geth-linux-v1.13.0.zip.sha256
# core-geth-linux-v1.13.0.zip: OK

# 2. Check where the archive came from
gh attestation verify core-geth-linux-v1.13.0.zip --repo ethereumclassic/core-geth
# Loaded digest sha256:... for file://core-geth-linux-v1.13.0.zip
# Loaded 1 attestation from GitHub API
# ✓ Verification succeeded!
#
# - Attestation #1
#   - Build repo:..... ethereumclassic/core-geth
#   - Build workflow:. .github/workflows/release-packages.yml@refs/tags/v1.13.0

sha256sum -c must print OK. If it prints FAILED, delete the file and download it again rather than running it. gh attestation verify must print Verification succeeded and name .github/workflows/release-packages.yml. If it does not, do not run the file. For another archive, put its name in place of core-geth-linux-v1.13.0.zip, such as core-geth-arm64-v1.13.0.zip.

Verify where the archive came from

macOS

Check the GitHub CLI

Checking where a file came from needs the GitHub CLI, signed in to GitHub. Install or update it with Homebrew, brew install gh, or with the macOS installer from GitHub's releases. Then confirm the release and the sign-in:

gh --version
gh auth status

gh --version must print 2.49.0 or later, the release that added gh attestation. gh auth status must say you are logged in to github.com. If it does not, run gh auth login. The checksum line in the next step does not need the GitHub CLI.

Check an archive

shasum -a 256 -c core-geth-osx-arm64-v1.13.0.zip.sha256
gh attestation verify core-geth-osx-arm64-v1.13.0.zip --repo ethereumclassic/core-geth

shasum -a 256 -c must print OK. If it prints FAILED, delete the file and download it again rather than running it. gh attestation verify must print Verification succeeded and name .github/workflows/release-packages.yml. If it does not, do not run the file. On an Intel Mac, put osx where the file names say osx-arm64.

Verify where the archive came from

Windows

Install or update the GitHub CLI

Checking where a file came from needs the GitHub CLI, signed in to GitHub. In PowerShell, WinGet, which comes with Windows 11, installs it, or updates an older one:

winget install --id GitHub.cli -e --source winget --accept-source-agreements --accept-package-agreements

Approve the prompt the installer shows.

Check the GitHub CLI

In the same window:

$env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User")
gh --version
gh auth status

The first line reloads PATH from Windows' settings, so this window finds gh. gh --version must print 2.49.0 or later, the release that added gh attestation. gh auth status must say you are logged in to github.com. If it does not, run gh auth login. The checksum line in the next step does not need the GitHub CLI.

Check an archive

# 1. Check that the archive arrived intact: compare these two lines, in PowerShell
(Get-FileHash "core-geth-win64-v1.13.0.zip" -Algorithm SHA256).Hash
Get-Content "core-geth-win64-v1.13.0.zip.sha256"

# 2. Check where the archive came from
gh attestation verify core-geth-win64-v1.13.0.zip --repo ethereumclassic/core-geth
# Loaded digest sha256:... for file://core-geth-win64-v1.13.0.zip
# Loaded 1 attestation from GitHub API
# ✓ Verification succeeded!
#
# - Attestation #1
#   - Build repo:..... ethereumclassic/core-geth
#   - Build workflow:. .github/workflows/release-packages.yml@refs/tags/v1.13.0

Compare those two lines yourself: the letters must match and the case need not, since Get-FileHash prints uppercase and the .sha256 file holds lowercase followed by the file name. If they differ, delete the file and download it again rather than running it. gh attestation verify must print Verification succeeded and name .github/workflows/release-packages.yml. If it does not, do not run the file.

Verify where the archive came from

Containers

Check Docker and the GitHub CLI

These steps need Docker to load the image, and the GitHub CLI to check where the image came from:

docker version --format '{{.Server.Version}}'
gh --version
gh auth status

The first line must print the Docker engine's version. An error in its place means Docker is not installed or not running: Get Docker says how to install it. gh --version must print 2.49.0 or later, the release that added gh attestation. gh auth status must say you are logged in to github.com. If it does not, run gh auth login. Install or update the GitHub CLI from cli.github.com. On Debian and Ubuntu, take GitHub's own package: theirs are older than 2.49.0.

Check an image file

curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-docker-amd64-v1.13.0.tar.gz
curl -LO https://github.com/ethereumclassic/core-geth/releases/download/v1.13.0/core-geth-docker-amd64-v1.13.0.tar.gz.sha256
sha256sum -c core-geth-docker-amd64-v1.13.0.tar.gz.sha256
gh attestation verify core-geth-docker-amd64-v1.13.0.tar.gz --repo ethereumclassic/core-geth

On an Arm64 host, put docker-arm64 where the file name says docker-amd64. sha256sum -c must print OK: if it prints FAILED, delete the file and download it again rather than loading it. gh attestation verify must print Verification succeeded and name .github/workflows/docker-publish.yml. If it does not, do not load the file.

Load the image

docker load -i core-geth-docker-amd64-v1.13.0.tar.gz

The loaded image keeps its published name, with v1.13.0 as its tag and no latest tag. Use that name in place of latest in a docker run command, because a command that names latest makes Docker pull from the registry.

Load the image from the release

Source

Choose your platform for checking a build from source

Check a build from source on Linux

Check the commit you built
git rev-parse HEAD
go version -m ./build/bin/geth | grep vcs.revision

Run these in the clone: the first line is the commit you checked out and the second is the commit the binary was built from. Both lines must name the same commit.

How do I verify a download?

Check a build from source on macOS

Check the commit you built
git rev-parse HEAD
go version -m ./build/bin/geth | grep vcs.revision

Run these in the clone: the first line is the commit you checked out and the second is the commit the binary was built from. Both lines must name the same commit.

How do I verify a download?

Check a build from source on Windows

Check the commit you built
git rev-parse HEAD
go version -m .\build\bin\geth.exe | Select-String vcs.revision

Run these in the clone: the first line is the commit you checked out and the second is the commit the binary was built from. Both lines must name the same commit.

How do I verify a download?

What every release carries

  • A checksum beside every file. A .sha256 is published with each archive and each image tarball.
  • A build attestation on every archive and image. It is minted against a short-lived certificate issued to the workflow run itself, and records which workflow, at which commit, produced the file, so each one traces to the run that built it rather than resting on anyone's word.
  • Provenance for the container images. Recorded for the published image index and for each image tarball.

On a first run Windows names the publisher as unknown, and macOS blocks a downloaded binary until it is allowed. The documentation's installation guide says how to check an archive and proceed.

How the release artifacts are built and checked