github wemixarchive/go-wemix w0.11.0
WEMIX3.0 Mainnet and Testnet Build (v0.11.0)

pre-release2 hours ago

WEMIX3.0 v0.11.0 Release Notes

Pre-release Date: December 02, 2026
Version: v0.11.0
Network: Mainnet, Testnet
Status: Pre-release — not for production deployment yet


Hardfork Information

Version Included Hard Fork Activation Block
v0.11.0 Croissant Mainnet: Block 134,004,000 (target 2027-01-18 11:00:42 KST)
Testnet: Block 138,903,600 (target 2026-12-11 11:00:13 KST)

⚠️ All nodes must upgrade to v0.11.0 before Croissant activates — testnet at block 138,903,600 and mainnet at block 134,004,000. A node that has not upgraded applies the pre-fork EVM rules and will diverge from the network at the fork block.


Overview

This release adds the Croissant hard fork, which brings the EVM part of Ethereum's Shanghai upgrade to go-wemix, and schedules it on mainnet and testnet. It also ports three upstream go-ethereum follow-ups and fixes a nil dereference in the block builder.

Key Highlights

  • Croissant Hard Fork: EIP-3855 (PUSH0), EIP-3860 (initcode size limit and metering) and EIP-3651 (warm COINBASE), gated by block number through croissantBlock
  • Fork Scheduled: Croissant is set on mainnet (134,004,000) and testnet (138,903,600)
  • Shanghai Contract Support: Contracts compiled with evmVersion: shanghai (the Solidity 0.8.20+ default) run after the fork
  • Upstream Follow-ups: 3 go-ethereum commits ported for PUSH0 handling and VM error reporting

Features

Core Protocol

Croissant Hard Fork (#227)

  • EIP-3855 PUSH0: Opcode 0x5f pushes zero for 2 gas. Before the fork it remains an invalid opcode.
  • EIP-3860 initcode limit and metering:
    • Initcode is limited to MaxInitCodeSize (2 × MaxCodeSize = 507,904 bytes).
    • A creation transaction pays InitCodeWordGas (2 gas) per 32-byte initcode word.
    • A creation transaction one byte over the limit is invalid: core.CheckInitCodeSize rejects it in the state transition, the full transaction pool and the light transaction pool, so it is never included in a block.
    • CREATE and CREATE2 pay the same word cost and fail over the limit.
  • EIP-3651 warm COINBASE: The coinbase is in the access list from the start of every transaction, so its first access costs 100 gas instead of 2,600.
  • Not included: EIP-4895 (withdrawals) is left out because go-wemix has no beacon chain. EIP-6049 changes no behaviour.

Blocks before the fork run the existing rules unchanged. Details are in docs/CROISSANT.md.

Differences from go-ethereum's Shanghai implementation

  • The Croissant jump table is built on the London set, not the merge set. go-wemix never went through the merge: its PoA headers carry difficulty 1 and the block context has no Random value, so the merge set's PREVRANDAO (0x44) would dereference nil. Opcode 0x44 stays DIFFICULTY.
  • StateDB.PrepareAccessList keeps its name. go-ethereum renamed this method when adding EIP-3651; go-wemix already has an unrelated Prepare(thash, ti), so the rename would also touch the miner, the tracers and the state processor. The method now takes the active rules and the block coinbase instead.

Improvements

Bug Fixes

  • Block builder nil dereference (#227): commitEx dereferenced env.till unconditionally. The uncle path in mainLoop reaches it with till unset on a PoW worker, which panics. The wait is now skipped when till is unset, matching the PoA build loop.
  • PUSH0 reported as a push opcode (#227): OpCode.IsPush stopped at PUSH1, so a JS tracer's op.isPush() returned false for PUSH0. It now counts PUSH0 through PUSH32. Execution is unchanged: jumpdest analysis does not use IsPush, and PUSH0 has no immediate bytes.

Refactoring

  • Push argument size from PUSH0 (#227): The core/asm instruction iterator computes the push size relative to PUSH0.
  • Intrinsic gas data length (#227): IntrinsicGas computes the data length once.

Breaking Changes

  • croissantBlock now names a different fork (#227). In v0.10.15 and earlier, croissantBlock named the fork at which go-wemix stops: a node refused to verify headers at or after that block, returning go-wemix does not support blocks after Croissant hard fork, and stopped producing them. That fork is now dalgonaBlock, and croissantBlock names the Shanghai EVM fork described above.

    A private-network genesis carrying croissantBlock from an earlier build therefore changes meaning on upgrade: the chain no longer halts at that block, and the Shanghai EVM rules apply from it instead. Networks created from the bundled genesis template, which set "croissantBlock": 100, must move that value to dalgonaBlock to keep the previous behaviour. The template now sets "croissantBlock": 0 and "dalgonaBlock": 100.

    Mainnet and testnet never had the old fork set, so neither live network is affected.

  • VM error strings now carry their cause (#227): A failing dynamic gas function keeps its cause wrapped in ErrOutOfGas, for example out of gas: max initcode size exceeded: size 507905. This applies to all blocks, not only from the fork on. Error strings in eth_call results and traces change; gas used, receipts and block validity do not. eth_estimateGas and the simulated backend match with errors.Is, so a wrapped error still reports gas required exceeds allowance.


Documentation

  • README rewritten against the current code (#227)
  • docs/CROISSANT.md added (#227): Croissant hard fork reference

Merged Pull Requests

PR Title Category
#227 feat: add the croissant hard fork Hardfork / Core

Upstream References

The Croissant EVM changes follow go-ethereum's Shanghai implementation, using the same core/vm/eips.go activators (enable3855, enable3860). The upstream pull requests that introduced them are listed as references; the follow-up commits are ported in this release.

Upstream Description In this release
ethereum#24039 core/vm: implement EIP-3855: PUSH0 instruction Reference
ethereum#26475 core/vm: enable EIP-3855 (PUSH0) in Shanghai Reference
ethereum#23847 core/vm: implement EIP-3860: Limit and meter initcode Reference
ethereum#25819 core: implement EIP-3651, warm coinbase Reference
ethereum#28520 eth/tracers/js: fix isPush for push0 Ported
ethereum#29293 core/asm: minor code-clarification Ported
ethereum#29354 core/vm: better error-info for vm errors Ported

Don't miss a new go-wemix release

NewReleases is sending notifications on new releases.