etclabscore/core-geth
About
A highly configurable Go implementation of the Ethereum protocol.
Systems & InfrastructureMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalCoreGeth
A Go client for Ethereum Classic, based on go-ethereum.
CoreGeth runs Ethereum Classic mainnet, the Mordor testnet and private proof-of-work chains. It keeps the proof-of-work consensus and mining that Ethereum Classic runs on, which upstream go-ethereum removed after Ethereum moved to proof of stake.
It stays as close to upstream go-ethereum as Ethereum Classic allows. RPC, JS and CLI APIs, data storage locations and schemas, and node protocols are kept compatible with upstream, so tooling written for geth works with CoreGeth. Bug reports, fixes and proposals that apply to upstream code belong upstream. Relationship with upstream go-ethereum describes how changes are merged.
Maintenance
CoreGeth is maintained in this repository and has been released from it since March 2020. It has implemented every Ethereum Classic upgrade from Phoenix (2020) to Spiral (2024) as specified through the ECIP process. It is the client most of the network runs today, as etcnodes.org shows. The badges above show the latest release and the most recent commit.
If development ever moves to another repository, this README will say so.
Getting a release
CoreGeth releases are published only on this repository's releases page, with container images at etclabscore/core-geth on Docker Hub. To check that a binary is a CoreGeth release:
- It comes from
github.com/etclabscore/core-geth/releasesor theetclabscore/core-gethDocker Hub image, and nowhere else. - Its version is in the
v1.12.xline. Version numbers are assigned by this project and say nothing about where a binary came from, since anyone can tag a fork with a higher number. - Every archive comes with a
.sha256file built by this repository's release workflow. Container images have no such file; they are identified by their tag on theetclabscoreDocker Hub account, and each tag matches a release on the releases page. - The project's only website is the documentation at etclabscore.github.io/core-geth. Any other domain using the CoreGeth name is unrelated to this project.
Quickstart
Run an Ethereum Classic node with Docker:
docker run -d --name coregeth \
-v coregeth:/root \
-p 30303:30303 -p 30303:30303/udp \
-p 127.0.0.1:8545:8545 \
etclabscore/core-geth:latest \
--classic --http --http.addr 0.0.0.0
For production, pin a release tag such as v1.12.23 instead of latest. Chain data is kept in the coregeth volume. Port 30303 is for peers. The JSON-RPC API on port 8545 is published to localhost only, because --http.addr 0.0.0.0 applies inside the container.
Follow the logs and check sync progress:
docker logs -f coregeth
curl -s -H 'Content-Type: application/json' \
--data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' \
http://127.0.0.1:8545
For binaries, other networks and the full set of flags, see the installation guide.
Networks
Networks selectable with a flag in the geth program built from this repository.
| Network | Flag | Consensus | Status |
|---|---|---|---|
| Ethereum Classic (ETC) | --classic |
PoW (etchash) | supported |
| Mordor (ETC testnet) | --mordor |
PoW (etchash) | supported |
| MintMe.com Coin (MINTME) | --mintme |
PoW | supported |
| Private chains | genesis file | PoW / PoA | supported |
| Ephemeral development chain | --dev |
PoA | supported |
Documentation
The CoreGeth documentation covers installation, the command line, the JSON-RPC API, building from source and running a private network, and the go-ethereum documentation applies to everything CoreGeth shares with upstream.
Relationship with upstream go-ethereum
CoreGeth is based on go-ethereum v1.13.14 (February 2024). Since then upstream has removed the code Ethereum Classic still depends on, in particular proof-of-work consensus, mining and the block propagation that goes with them, so merging whole upstream releases is no longer possible. Changes are backported individually instead.
The rules that decide what gets merged:
- If upstream has code for it, CoreGeth uses upstream's code, including where upstream fixed a problem differently. A backport is kept as close to the upstream commit as this codebase allows and comes with a test that exercises it here, since upstream only tested its own tree.
- CoreGeth does not diverge from upstream unless Ethereum Classic requires it.
- The ETC-specific surface (proof-of-work consensus, mining, block propagation, chain configurations) has no upstream to defer to, so changes there need a written rationale and a test that fails without them.
- Consensus rules follow the ECIP process. CoreGeth implements accepted ECIPs.
- Bugs in code shared with upstream are reported and fixed upstream first.
Security
Please do not report vulnerabilities in public issues. Use GitHub's private vulnerability report for this repository; see SECURITY.md for details. Fixed vulnerabilities are listed in the notes of the release that fixes them.
Contribution
Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!
If you'd like to contribute to CoreGeth, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base. If you wish to submit more complex changes though, please open an issue first, or ask in the Ethereum Classic Discord, to ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple.
Please make sure your contributions adhere to our coding guidelines:
- Code must adhere to the official Go formatting guidelines (i.e. uses gofmt).
- Code must be documented adhering to the official Go commentary guidelines.
- Pull requests need to be based on and opened against the
masterbranch. - Commit messages should be prefixed with the package(s) they modify.
- E.g. "eth, rpc: make trace configs optional"
Please see the upstream Developers' Guide for more details on configuring your environment, managing project dependencies, and testing procedures.
Forks and other clients
Please be cautious about using other repositories that carry the CoreGeth name. They are not maintained or reviewed by this project, and a release published there is not a CoreGeth release. Forks are welcome. We ask that they use a different name so operators can tell which client they are running.
CoreGeth is one of several Ethereum Classic clients. Others include:
- getc, a Go client based on a newer go-ethereum.
- Nethermind with the ETC plugin, a .NET client.
- Besu with the ETC plugin, a Java client.
Which one to run is the operator's choice. Running more than one client makes the network safer.
License
The CoreGeth library (i.e. all code outside of the cmd directory) is licensed under the GNU Lesser General Public License v3.0, also included in our repository in the COPYING.LESSER file.
The CoreGeth binaries (i.e. all code inside of the cmd directory) is licensed under the GNU General Public License v3.0, also included in our repository in the COPYING file.
Explore related projects
Loading…