Skip to content

Contributing to Cinder ​

Thanks for your interest. Cinder is an Ethereum execution client: a wrong result is a chain split. The bar for changes is therefore "proven", not "looks right".

Ground rules ​

  • Consensus parity with reth is the spec. Behaviour must match the Ethereum execution specs and reth byte for byte. If they disagree, open an issue before writing code.
  • Tests first. Every behaviour change or bug fix comes with a test that fails without it. Performance changes must not change any result.
  • Style. C17, cn_ prefix, the layout of the existing files: no malloc on the execution hot path (use arenas), no hidden global state, errors as return codes, never abort() on input data.
  • Vendored code under deps/ is not edited by hand. Refresh it with the scripts in tools/vendor_*.sh.

Before you open a pull request ​

bash
make && make test                       # debug build (ASan + UBSan), unit tests
make PROFILE=release
build/release/bin/statetest             # EEST Osaka state tests: must stay 100%
make PROFILE=release blocktest          # EEST blockchain tests: must stay 100%
build/release/bin/enginetest --db /dev/shm/cinder-et --threads 8 --cache-mb 64 --defer-persist
                                        # EEST Engine API fixtures through the node's chain: 100%

If you touch execution, state, trie or precompiles and have a reth node, also run the mainnet check (tools/verify.sh). For node performance work, measure with cinder-bench-node and an interleaved A/B on a live node. For engine performance, measure with tools/bench/ab.py. For the gas throughput of one core, run make bench-gas PROFILE=release (add MAINNET_DIR=DIR for mainnet .ecfx fixtures). The method is in docs/results/2026-10-gas-bench.md. For JSON-RPC changes, run cinder-rpc-diff against a reth node. Paste the numbers into the PR.

Pull requests ​

  • Title: area: what changes in plain words, with the issue number when there is one, for example rpc: eth_getLogs answers in the order of the logs (#51). Do not use feat: or fix: prefixes.
  • Body: what changes, why, and how you tested it. Write Fixes #N to close an issue.
  • One topic per pull request. Pull requests land as one squashed commit.

JSON-RPC examples ​

  • The examples of the JSON-RPC methods are in docs/rpc/examples. To record them again, run tools/docs/rpc_capture.py. Give it the URL of a Cinder node and the URL of a reth node.
  • After a change to the methods that the node serves, run make docs-rpc and update docs/rpc/status.yaml. make check-docs checks the method list against the code and the numbers in the README against their records.

Versions and releases ​

  • A milestone release (0.9, 1.0, 1.1, ...) closes a milestone on GitHub.
  • A patch release (0.9.1, 0.9.2, ...) ships one or more changes that are merged on main and measured. A latency change needs an interleaved A/B with a 95% interval that excludes 0. Each patch release gets a tag, a CHANGELOG entry and a GitHub release with its numbers.
  • A build reports its version in web3_clientVersion, in the P2P Hello and in engine_getClientVersionV1. A build of a release tag with no local changes reports the release (Cinder/v0.9.0/...). Any other build reports the release before it and its commit (Cinder/v0.9.0-dev+abc1234/...).

Reporting a consensus difference ​

Use the Consensus difference issue template. Attach the block number (or the state test), the field that differs, and how to reproduce. Please do not publish exploitable details of a consensus bug before it is fixed. See the security policy.

License ​

By contributing you agree that your contributions are licensed under MIT OR Apache-2.0, as the rest of the project.

How the project measures a change ​

The project keeps a performance change only when a measurement shows that it helps. The page Every change, measured shows the method and every result.

  • Record every experiment. Write each experiment in docs/results, also when you revert the change. Give the setup, the numbers, the decision and the reason. A failed idea is a result too.
  • Interleave the A/B by block parity. A temporary switch sends odd blocks to the old code and even blocks to the new code. Both arms then see the same minutes and the same load. Never commit the switch. tools/measure/abphase.py compares the arms from the log of the node.
  • Use enough blocks. Use arms of 75 blocks or more for a decision. Give the mean, the time per Mgas with its standard error, and the split of the block time.
  • Keep the machine quiet. Do not run heavy jobs, for example the EEST runners or a sanitizer build, during an A/B.

Text rules ​

The docs, the changelog, the issues and the commit messages use the same rules:

  • Write in the style of ASD-STE100 (Simplified Technical English). Use sentences of 25 words or less, one instruction in each sentence, and simple verbs. Do not use semicolons.
  • Do not use the em dash character. Use a colon, a comma or two sentences.
  • Do not write local configuration: no host names, home paths, user names, ports or data directories of your own machines. Use placeholders, for example DIR or JWT_FILE.
  • Every measured number must come from a record in docs/results.