XDC geth v1.17.10-xdc.28 is the modern XDC client. It is built on current go-ethereum 1.17.10, while the classic XDC client (XDPoSChain) is built on a 2018-era go-ethereum.
It keeps XDC 2.0 consensus exactly as it is, with 2-second blocks and the same XDPoS 2.0 finality. It adds snap sync, pruning, modern RPC and every upstream fix.
We tested every node type, and every Ethereum upgrade from TIPSigning to Glamsterdam (Amsterdam), on the private test network net2040. The node types were also tested on Apothem and synced on mainnet.
Focus for now: promote the latest geth client. The other clients (Erigon, Reth, Besu, Nethermind, xOne family) are in the appendix.
Contents
- What is new
- Node types and one-command setup
- Server cost
- Snap sync vs classic full sync
- RPC and other improvements
- Every upgrade tested on net2040
- Ethereum networks on the same binary
- Benefit to the XDC network
- Appendix: other clients on Apothem
1. What is new, in simple words
| Classic XDC client | Modern XDC geth (xdc.28) | |
|---|---|---|
| Code base | go-ethereum from 2018 | go-ethereum 1.17.10 (current) |
| How a new node joins | Replays every block since genesis | Snap sync: downloads verified recent state, then follows the tip |
| Time to join mainnet | Days (all blocks replayed) | About 9–10 minutes (measured, mainnet, Oct 2026) |
| Disk for a normal node | Full state history kept | Path-based state with pruning: about 160 GB (mainnet snap) |
| Server cost per month | ~$360–680 on a top-tier cloud provider, on-demand (3a) | Light node: under $50 on a VPS or entry dedicated server (3b) |
| Security fixes from Ethereum | Copied by hand, one at a time | Arrive with each upstream release |
| RPC | 2018-era API set | Modern API set (section 5) |
| Security audit | – | Hacken audit with public remediation (XDCIndia/xdc-geth-audit, REMEDIATION.md) |
| Block time | 2 s | 2 s (unchanged) |
| Finality | XDPoS 2.0 3-chain commit | Same XDPoS 2.0 3-chain commit (unchanged) |
| After Amsterdam (Glamsterdam) | Stops at Amsterdam − 1 (proven on net2040) | Continues |
2. Node types: all tested
Each node type started from an empty datadir, synced to the tip and then minted blocks as a validator (tracker #1902).
| Node type | What it is for | net2040 | Apothem | Mainnet |
|---|---|---|---|---|
| snap | Validators and most RPC nodes. Fastest join, smallest disk | ✅ Synced + minted | ✅ Synced + minted | ✅ Synced to tip |
| fast | Same goal as snap, older method | ✅ Synced + minted | ✅ Synced + minted (tip in 17 min) | ✅ Tip in 9 min 3 s |
| full | Re-executes every block, verifies all history | ✅ Synced + minted | ✅ Synced + minted | ✅ Synced |
| archive (path) | Full state history, modern storage. Explorers and indexers | ✅ Synced + minted | ✅ Synced + minted | ✅ Tip |
| archive (hash) | Full state history, classic-style storage | ✅ Synced + minted | ✅ Synced + minted | – (needs ≥ 4 TB NVMe) |
On mainnet there is no staked test key, so the mainnet column shows sync only.
Which one should I run?
| You are… | Run |
|---|---|
| A validator or a normal RPC provider | snap |
| An explorer or analytics service | archive (path) |
| Someone who must re-verify all history yourself | full or archive (hash) |
2a. Start a node with one command (one.sh)
One command downloads XDC geth, writes the config and starts the node. Choose the node type with --mode. For mainnet, change --network apothem to --network mainnet.
# Snap (recommended: validators and RPC nodes, light node profile)
curl -fsSL https://xdc.network/one.sh | bash -s -- --network apothem --client geth --mode snap \
--name server-geth-snap-test-doom start
# Fast
curl -fsSL https://xdc.network/one.sh | bash -s -- --network apothem --client geth --mode fast \
--name server-geth-fast-test-doom start
# Full (re-executes every block)
curl -fsSL https://xdc.network/one.sh | bash -s -- --network apothem --client geth --mode full \
--name server-geth-full-test-doom start
# Archive (full state history for explorers and indexers; needs a large disk)
curl -fsSL https://xdc.network/one.sh | bash -s -- --network apothem --client geth --mode archive \
--name server-geth-archive-test-doom start
Manage the node (run these in the same directory):
./one.sh status # sync height, peers, mining
./one.sh logs # follow the log
./one.sh restart
./one.sh stop
Validator: add
--validator --i-understand-single-signerto the start command. Use it only with your own staked masternode key, and run only one signer per key.
--mode |
geth settings used by one.sh
|
|---|---|
snap |
--syncmode snap --gcmode full --history.transactions 2350000, path state |
fast |
--syncmode fast --gcmode full, path state |
full |
--syncmode full --gcmode full, path state |
archive |
--syncmode full --gcmode archive, hash state |
3. Server cost: classic vs modern geth
Three things drive the cost: disk size, time before the node is useful and CPU/IO during sync.
| Cost driver | Classic full node | Modern geth snap node | Effect |
|---|---|---|---|
| Disk (mainnet) | All historical state, hash-based, grows every block | ~160 GB (snap, path state, pruned tx index) | Smaller NVMe, cheaper server |
| Disk growth | Unbounded | Modern full (path) grows about 10 GB per 1M blocks; snap prunes old state | Predictable disk planning |
| Time before useful | Days of replay | Minutes | A new or replaced validator is back fast; less downtime and penalty risk |
| CPU/IO during sync | Re-executes ~110M blocks | Downloads state, verifies proofs, follows the tip | A smaller machine is enough |
| Recovery after disk failure | Replay again, or copy a snapshot by hand | Snap sync again in minutes | No large snapshot downloads |
Measured sizes
| Node | Disk |
|---|---|
| Mainnet snap node | ~160 GB |
| Mainnet full node (path) | ~222 GB at block 88.6M, + ~10 GB per million blocks |
| Apothem snap validator | 148 GB |
3a. Cloud cost: classic full node vs modern geth light node
Light node = modern geth with snap sync and minimal storage:
--syncmode snap --state.scheme path --gcmode full --history.transactions 1000 --history.logs.disable(measured on mainnet at about 160 GB).A light node is still a full validating node: it verifies every new block and can be a validator. It is "light" because it keeps only recent state and recent history, so it runs on a small, cheap server with low cloud fees.
Assumptions
- A top-tier cloud provider (US region), on-demand general-purpose instances, 730 h per month.
- SSD block storage at about $0.08 per GB-month, provisioned with about 50% headroom.
- Approximate list prices.
Classic defaults
- The classic installer (
XinFin-Node/mainnet/start-node.sh) defaults to--syncmode full, replaying from genesis. - Its script default is
--gcmode archive.env.examplesuggestsfullto save disk.
| Setup | Instance | Data on disk | Disk provisioned | Compute $/mo | Disk $/mo | Total $/mo |
|---|---|---|---|---|---|---|
Classic, default script (gcmode archive, hash state) |
8 vCPU, 32 GB | ≥ 4 TB (est.) | 5 TB | ~$280 | $400 | ~$680 |
Classic, gcmode full (hash state, no online pruning) |
8 vCPU, 32 GB | ≥ 0.5 TB, grows every block (est.) | 1 TB | ~$280 | $80 | ~$360 |
| Modern geth full (path state) | 8 vCPU, 32 GB | ~435 GB (222 GB @ 88.6M + 10 GB/1M blocks) | 600 GB | ~$280 | $48 | ~$328 |
| Modern geth light node | 4 vCPU, 16 GB | ~160 GB (measured) | 250 GB | ~$140 | $20 | ~$160 |
"est." = estimated, not measured.
The light node needs a smaller instance because it does not replay history. The Apothem geth validator uses about 16% CPU and about 3 GB RAM at the tip.
What this means
| Classic | Modern light node | Saving | |
|---|---|---|---|
| vs classic default (archive) | ~$680/mo | ~$160/mo | ~76% |
vs classic gcmode full
|
~$360/mo | ~$160/mo | ~55% |
| 108 masternodes, per year (illustration) | ~$881k | ~$207k (cloud) / under $65k (budget server, 3b) | up to ~93% |
- Hidden cost, time before useful: a classic node replays about 110M blocks before it can validate. That means days of paid instance time with the validator down. A light node is useful in about 10 minutes.
- Backups: block-storage snapshots cost about $0.05 per GB-month. 160 GB costs about $8/mo, against $200+/mo for a 4 TB classic archive.
3b. Light node: low cloud fees, under $50 per month
| Resource | Measured (Apothem geth validator at tip) | Enough for a light node (follower or validator) |
|---|---|---|
| CPU | ~16% of one core | 2–4 vCPU |
| RAM | ~3 GB | 8 GB (16 GB more comfortable) |
| Disk | 148 GB (mainnet: ~160 GB) | 250 GB NVMe/SSD (room for growth) |
| Where | Example | Approx. $/mo |
|---|---|---|
| VPS or entry dedicated server | 4 vCPU, 8–16 GB, 250 GB NVMe | $20–50 |
| Top-tier cloud provider, 1- or 3-year commitment discount | 2 vCPU, 8 GB + 250 GB SSD ($20) | ~$45–60 |
| Top-tier cloud provider, on-demand (for comparison) | 4 vCPU, 16 GB + 250 GB SSD | ~$160 (3a) |
Why this works
- No history replay. CPU is needed only to follow 2-second blocks, not to replay 110M blocks.
- Pruned state. Disk stays near 160 GB instead of terabytes.
- The classic default needs much more. Archive mode needs a 4–5 TB disk, which alone costs more than $50 per month on most clouds.
Caveats
- Prices are approximate list prices.
- High-traffic public RPC nodes and archive nodes need more resources.
- For a validator, choose a provider with a reliable network. Uptime matters more than price.
4. Snap sync vs classic full sync
Classic full sync
genesis ──replay──replay──replay── ... ──replay──▶ tip (every block re-executed: days)
Modern snap sync
genesis ··headers only···▶ pivot ──download verified state──▶ tip (minutes)
│
└─ state root checked against the block header
| Time to tip | |
|---|---|
| Mainnet | ~9–10 min |
| Apothem | ~17 min |
| net2040 | ~15 min |
| Full re-execution (classic, always) | 840–1,250 blocks/s, about 19 h for Apothem from block 28M |
-
Safety
- The downloaded state must match the state root in a signed, QC-backed header.
- At XDPoS epoch switches, geth proves the gap-block snapshot from verified data, so a snap node does not stop at its first epoch switch.
- Same result: a snap node and a full node agree on every block hash and state root after the pivot.
-
Network benefit
- New validators, RPC providers and exchanges can join in minutes, not days.
- The network can replace a failed node fast.
- More independent nodes means more decentralisation.
5. RPC and other improvements
RPC (from current upstream geth)
| Method / feature | Why it matters |
|---|---|
eth_getBlockReceipts |
All receipts of a block in one call; explorers and indexers make far fewer calls |
eth_feeHistory, eth_maxPriorityFeePerGas
|
Modern wallet fee estimation |
eth_getProof |
Merkle proofs for accounts and storage, for light clients and bridges |
eth_simulateV1, eth_call / eth_estimateGas with state overrides |
Modern simulation |
debug_trace* with native tracers (callTracer, prestateTracer) |
Fast tracing |
| GraphQL, WebSocket subscriptions, batch and response-size limits | Protect public RPC nodes |
XDC-specific improvements in xdc.2x
| Improvement | What it does |
|---|---|
| Start a validator without a restart (#2259) | IPC-only miner.startSigner(address, passwordFile). Peers and BFT round state are kept; the password never appears in requests or logs |
| Peer-fault protection (#2257) | A malformed block body is refused and refetched; the valid block is not marked bad |
| Cleaner logs (#2258) | No false warnings; noisy lines are rate-limited |
| History pruning |
--history.transactions keeps only recent tx indexes; --history.logs.disable turns off the log index. Less disk on RPC and validator nodes |
| Disk guard |
--datadir.minfreedisk stops the node cleanly before the disk is full |
| Easy install | Static linux-amd64 binary and the one-line installer one.sh, reporting to stats.xdcindia.com
|
| Reference implementation | Every other XDC client must match geth block for block (hash, state root, receipts root, gas used) |
6. Every upgrade tested on net2040
2-second blocks and XDC 2.0 finality kept throughout.
net2040 is a private, mainnet-like test network (#1669):
- Same system contracts as mainnet, epoch 900, gap 450 and 2-second blocks (
minePeriod 2). - V2 consensus from block 10,800, with certificate threshold 0.667.
- Classic and modern nodes ran together, then the classic nodes retired.
Result: all 13 fork groups passed ✅. Every node had the same block hash and state root at F−1, F and F+1 of every fork, and rewards were correct throughout.
| # | Block | Upgrade(s) tested |
|---|---|---|
| 1 | 1,800 | TIPSigning (0x89 sign txs gasless) |
| 2 | 3,600 | TIPRandomize |
| 3 | 5,400 | TIPIncreaseMasternodes |
| 4 | 7,200 | Denylist, NoHalvingMNReward, XDCX, XDCX Lending, XDCX cancellation fee, TRC21Fee |
| 5 | 9,000 | Berlin, London, Merge, Shanghai (PUSH0) |
| 6 | 10,800 | XDPoS 2.0 switch (V2), Gas50x, XDCXMinerDisable |
| 7 | 11,700 | XDCXReceiverDisable |
| 8 | 12,600 | EIP-1559 (fixed base fee) and Gas2500x |
| 9 | 14,400 | Cancun (TSTORE, BLOBBASEFEE) |
| 10 | 16,200 | DynamicGasLimit, TIPUpgradeReward, TIPUpgradePenalty |
| 11 | 18,000 | Prague |
| 12 | 19,800 | Osaka (CLZ) |
| 13 | 21,600 | Amsterdam / Glamsterdam (EIP-7928 block access list) |
What stayed the same across every upgrade
| Block time | V2 mine period 2 s; the chain kept a 2 s cadence after each fork |
| Finality | 3-chain commit: three consecutive rounds with QCs (commitBlocks, consensus/XDPoS/engines/engine_v2/utils.go). About 6 seconds at 2 s blocks. No finality rule changed |
| Rewards | 5,000 XDC per V1 checkpoint; V2 epoch-switch rewards matched the classic client |
| Penalties | The release rule held: 5 epochs, at least 30 sign txs |
Throughput on modern geth (4-machine test network)
| Load | Result |
|---|---|
| 2.5 s blocks, clean | ~1,000 TPS |
| 2K target | 1,872 TPS |
| 10K target | 3,257 TPS peak included |
| Hash mismatches | 0 |
⚠️ Important for operators: the classic client follows the chain up to Osaka, but stops at Amsterdam − 1, because modern headers carry the block access list hash. Every validator must run modern geth before the Amsterdam block.
7. The same binary runs Ethereum networks
XDC geth keeps upstream go-ethereum's network support, so the same binary can run Ethereum networks next to XDC, with minimal storage.
| Network | Flag | Notes |
|---|---|---|
| Ethereum mainnet | --mainnet |
Upstream genesis and bootnodes kept |
| Hoodi testnet | --hoodi |
Upstream genesis and bootnodes kept |
| Sepolia testnet | --sepolia |
Upstream genesis and bootnodes kept |
| Private / devnets (e.g. a PQ devnet) |
geth init <genesis.json> + --networkid
|
Any custom genesis |
Minimal-storage profile for Ethereum networks (run it with a consensus client, for example Lighthouse with checkpoint sync):
--syncmode snap --state.scheme path --gcmode full --history.chain postmerge --history.transactions 1000 --history.logs.disable
| Part | Effect |
|---|---|
| State | Path-based state keeps only recent state; pruned online, no offline prune step |
| Chain history |
--history.chain postmerge drops pre-merge block bodies and receipts (EIP-4444-style history expiry) |
| Indexes | Tx and log index limits cut RPC index size, as on XDC |
| Consensus client | Lighthouse with checkpoint sync on Hoodi uses about 28 GB (measured on our Hoodi follower) |
The team already runs Ethereum follower nodes on Hoodi. The XDC and Ethereum operational knowledge (snap sync, minimal storage, monitoring) is shared.
8. Benefit to the XDC network
- 💰 Lower server cost: smaller disk, smaller machines, no days of replay.
- ⚡ Faster recovery: a failed validator or RPC node is back in minutes, so there are fewer missed rounds and penalties.
- 🌐 More nodes, more decentralisation: joining is easy, so more operators can run nodes.
- 🔒 Security: a current upstream base, an audited XDC layer, and upstream fixes delivered as they come.
- 🚀 Ready for the future: all upgrades through Amsterdam are tested. The classic client cannot follow past Amsterdam.
- 🤝 Same user experience: 2-second blocks and the same XDPoS 2.0 finality, with no consensus change for users.
Appendix: other clients on Apothem
Snapshot 2026-11-28, 16:05 UTC. All 10 clients are in the Apothem masternode set (108 masternodes; none of ours in the penalty list). "Blocks sealed" counts the last 3,600 blocks (about 2 h); a fair share is about 33.
| Client | Validator | In set | Blocks sealed | Status |
|---|---|---|---|---|
| XDC geth | 0x11c3637d2848ebdc190d56d8b81348c21446e866 |
✅ | 36 | ✅ Minting |
| Nethermind | 0x1a56b4eb82410bf6c9af800b2834a351c5166ccd |
✅ | 37 | ✅ Minting |
| Reth | 0x1e870937601fc462513e1b8708b21ceb08f8ec47 |
✅ | 37 | ✅ Minting |
| Erigon | 0xa34e91459a95965a812c0585fd5b1d74d77ed013 |
✅ | 37 | ✅ Minting |
| Besu | 0x610279c76cbf6ac02e3410a3b1a588ad14c43724 |
✅ | 37 | ✅ Minting (nonce fix v26.11-xdc.8) |
| xOne | 0x68a20b568d8058d1498f5308719d1a139c4c7f5a |
✅ | 37 | ✅ Minting (snap re-pivot fix, xOneGo #764) |
| xOne-RS | 0x1f9143c47f4e8c602a66206a41eae49518f5eb20 |
✅ | 37 | ✅ Minting |
| xOne-C | 0x1f65c24cd6d8a7125544fa81cc97fd9ba54f69bd |
✅ | 37 | ✅ Minting |
| xOne-PY | 0x830d6f8a258e31448438d3ae6895e993a1f534a1 |
✅ | 37 | ✅ Minting |
| xOne-TS | 0xdf4fdb608608f11b69d7b19ceaf5e065b3274763 |
✅ | 31 | 🔄 Minted until 15:45 UTC; moved to a new host, re-syncing (snap) |
Discussion (0)