← Back to Pull requests

feat: upgrade go-ethereum to v1.17 #1136

Closed
unknown closed this pull request without merging on Nov 10, 2026 05:13 UTC
View on GitHub
unknown unknown commented on Oct 29, 2026 15:09 UTC
Author

<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for creating a PR! ✰
v Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

Closes: #XXX

Description

Bumps go-ethereum from v1.16.9 to v1.17.10, using the crypto-org-chain fork 43022f1730ed: v1.17.10 with the Cronos stateful precompiles ported on top.

The chain still runs Osaka rules. Amsterdam is implemented on a best-effort basis behind a new amsterdam_time param, but it can't be turned on yet (see below).

Full details and the remaining TODOs are in docs/upgrade/go-ethereum-v1.17.md.

State machine breaking

  • Static-context precompile calls: a stateful precompile reached by a plain CALL from inside a static frame now gets readonly = true. Before, it got false.

  • SELFDESTRUCT (EIP-6780): the interpreter now moves the balance itself, so bank events are emitted in a different order. Final balances don't change.

  • Fork rules always assume the merge, as the interpreter does. Which forks are active no longer depends on merge_netsplit_block. On chains that leave it unset, tracing blocks executed before the upgrade can report different gas than the original execution.

  • EIP-7825 per-tx gas cap is enforced in the ante handler and in ApplyTransaction. These are not capped: eth_call, eth_simulateV1, and messages that modules apply directly through ApplyMessage/ApplyMessageWithConfig.
  • Amsterdam (present but disabled)

  • New amsterdam_time field in ChainConfig (proto field 26).

  • Genesis validation, MsgUpdateParams and SetParams reject it through ChainConfig.ValidateAmsterdamDisabled() until the EIP-8037 runtime state charges are implemented.

  • Already implemented: EIP-7708 transfer logs, EIP-8246 (SELFDESTRUCT keeps the balance), the EIP-8024 opcodes, EIP-8038 repricing, EIP-7976/7981 calldata and access-list costs, the larger code-size limits, and EIP-8037 state gas taken from a single gas pool.
  • Precompile

  • Contract.Gas is now a vm.GasBudget, and Contract.UseGas/RefundGas are removed. Charge gas with contract.Gas.ChargeExecution(cost) and return vm.ErrOutOfGas when it returns false.

  • vm.ValidatePrecompiles rejects a precompile whose Address() differs from the address it's registered at.

  • Stateful precompiles must not implement vm.CacheablePrecompile, because geth may serve cached results keyed only on the input.

  • Reserved addresses are now 0x01–0x11 and 0x0100 (P256VERIFY). The guide's suggested custom range moved to 0x64+.
  • API breaking

    core.Message

  • Value, GasPrice, GasFeeCap and GasTipCap are now uint256.Int.

  • The skip flags are unexported. Set them with SkipNonceCheck() and SkipEOACheck().
  • Message construction

  • MsgEthereumTx.AsMessage(baseFee) now returns (core.Message, error).

  • AsMessage, TransactionArgs.ToMessage and ToSvalues and values above 256 bits.

  • TransactionArgs.ToSimMessage(baseFee) drops the skipNonce argument.
  • Keeper / EVM

  • keeper.GetEthIntrinsicGas(msg, rules): the i is removed. Contract creation is now derived

  • from msg.To.
  • EVM.Call and EVM.Create take and return a vm

  • statedb.Transfer takes an extra *params.Rules argument.

  • core.ErrMaxInitCodeSizeExceeded moved to vm..
  • StateDB / vm.StateDB

  • SelfDestruct no longer returns a balance.

  • SelfDestruct6780 and PointCache are removed.

  • Added: IsNewContract, Touch, and a no-op Set

  • Finalise(params.Rules) replaces Finalise(boo access list.
  • Tracing

  • HookedStateDB.SelfDestruct only reports a ba account.

  • New HookedStateDB.SelfDestructHooks() takes a snapshot of the end-of-tx self-destruct hooks (balance, nonce, code)

  • and returns a func that emits them. Call it returned func after.

    JSON-RPC

  • eth_estimateGas never returns more than MaxT

  • eth_simulateV1 skips the EIP-7002/7251 systets have no code, because v1.17 returns an error on empty system contracts.

  • eth_simulateV1: ErrFeeCapTooLow now returns error code -38012 (base fee too low) instead of -32602, matching pendencies

  • grpc v1.83.2, protobuf v1.36.12, x/net v0.5855.0, otel v1.46.0, go-eth-kzg v1.5.0,c-kzg-4844 v2.1.8.
  • go-verkle and go-ipa are dropped. gomod2nix.toml is regenerated.
  • Tests and tooling The integration tests now use a geth v1.17 r7-estimateGas fork branch); clef is no longerbuilt.


  • start-geth.sh: removed the personal API and unlock (--dev now unlocks the validatoraccount). --miner.etherbase is replaced by --miner.pending.feeRecipient.

  • The geth genesis now pre-deploys the EIP-700racts.
  • Docs

  • New docs/upgrade/go-ethereum-v1.17.md.

  • docs/precompile_creation_guide.md is updatedour.

  • CHANGELOG.md has an entry under State Machin
  • ______

    For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.

  • Code follows the module structure standards.

  • Wrote unit and integration tests

  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)

  • Added relevant godoc comments.

  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md

  • Re-reviewed Files changed in the Github PR explorer
  • ______

    For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)

  • Reviewers assigned

  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: JayT106 Review duration: 16684m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #1136"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 20.5% · Safe to merge
    20.5%