Mac users guide¶
This guide upgrades a node on macOS from any v1.12.x release to v1.13.0. Migrating to v1.13.0 explains why, and what changes for every node.
The commands use the default Ethereum Classic data directory on macOS, ~/Library/Ethereum/classic. If you pass --datadir, use yours; for Mordor, use ~/Library/Ethereum/mordor.
Choose how you update¶
| Method | Use it if |
|---|---|
| Release archive | You run a published binary: core-geth-osx-arm64 on Apple Silicon, core-geth-osx on Intel |
| Build from source | You compile the client yourself |
uname -m prints arm64 on Apple Silicon and x86_64 on Intel.
Before you start¶
Record what you are running:
1 2 3 4 | |
Keep that last line. It is your current enode ID, and step 3 changes it.
1. Stop the node cleanly¶
- In a terminal: press Ctrl-C once and wait. A second interrupt does not kill it.
- Under launchd: stop the job you created.
Wait for INFO [..] Blockchain stopped before you continue. It confirms the database is consistent.
2. Install v1.13.0¶
Keep the old binary until the upgrade is verified; step 6 uses it.
Method A: release archive¶
Download the archive for your processor and check it, as Installation, macOS shows, including clearing the quarantine attribute if a browser downloaded it, then verify where it came from. Replace the binary:
1 2 3 | |
Method B: build from source¶
Building needs Go 1.26 and the Xcode Command Line Tools (xcode-select --install), which provide the C compiler and make. Build from the release branch, not from main:
1 2 3 4 5 6 | |
Do not clone with --recursive. The submodules hold test fixtures of several gigabytes that make geth does not read.
3. Rotate the P2P node key¶
Required. Rotate the P2P node key explains why, and which peer lists to update. With the node stopped:
1 | |
4. Re-check RPC exposure¶
Go through the RPC exposure checklist against the flags you start the node with.
5. Start and verify¶
Start the node the way you always do. Then, in this order:
1 2 3 4 | |
A peer count stuck at zero after ten minutes usually means a peer still lists your old enode ID. Last, compare eth.blockNumber with a block explorer or another node you operate.
6. If you need to roll back¶
The data directory works in both directions. Stop the node, restore the old binary, and start it again:
1 | |
The rotated node key stays rotated: rolling back does not un-expose the old key.