Skip to content

v0.12.0-rc5

Pre-release
Pre-release

Choose a tag to compare

@joanestebanr joanestebanr released this 24 Nov 13:49
v0.12.0-rc5
8539310

This release candidate is cut from the head of develop. The notes below are written relative to v0.12.0-rc4; the changes that make up v0.12.0 itself are described in the v0.12.0-rc1 notes.

Important

This candidate has breaking changes in the node API (JSON-RPC removed), in the AggOracle (committee v1 dropped), in the aggsender validator (proposer authentication) and in the aggkit-proxy tracker API. Read the Breaking Changes section and the rollout notes before upgrading.

🚀 What's New

  • JSON-RPC replaced by REST (#1938): the JSON-RPC server (port 5576, [RPC]) is gone. Read-only queries move to PublicREST and operator actions to the new AdminREST server (127.0.0.1:5579 by default). See the method → endpoint table in API Updates and docs/rest_api.md.
  • AggOracle committee v2 and ger_validator_signer (#1943): the AggOracle injects GERs through an AggOracleCommittee v2, collecting signatures from the new ger_validator_signer service. The committee v1 is no longer supported. AggOracle.Mode (direct, committee, auto, default auto) picks the mode from the updater contract at startup.
  • Reorg support in the aggkit-proxy tracker (#1979, #1980, #1986, #1995): finality is resolved from block_finalized (with a receipt fallback), claimed is no longer terminal and the new terminal status is claimed_finalized, and the activity endpoint gets a revision, a per-item finalized flag and ETag/If-None-Match support. api_revision goes from 6 to 8.
  • exit_certificate delta mode (#1908): chain additional bridge exits on top of a previous certificate (deltaMode, previousRun, deltaExitsFile).
  • Multidownloader retry policy (#1958, fixes #1956): a failed step was retried after 1 ms; it now follows a configurable policy ([L1Multidownloader.RetryAfterError], [L2Multidownloader.RetryAfterError]), by default 1s, 2s, 4s … 5m.

🐞 Fixes

  • Sync and trees
    • AppendOnlyTree cache invalidated on a rolled-back transaction; before, a retry after a rollback could store a wrong root and RHT nodes (#1940).
    • bridgesync never halts on a bridge whose from address can't be resolved (fee-on-transfer tokens, wrapped tokens on gas-token networks, several callers in the same tx): it pairs calls by position and otherwise stores from_address as NULL (#1974).
    • reorgdetector detects a rollback to a shorter chain, and last-reorg-event is deterministic (#1989, fixes #1983).
    • RPC URLs (which often carry API keys) are no longer logged: only scheme and host (#1958, fixes #1957). The same PR removes a false ERROR in l2gersync (#1955) and clarifies the SupportNonEthereumWithMaxGapsInBlocks docs.
  • Aggsender and validator
    • Validator responses are validated and a failing or panicking validator no longer affects the others (#1941).
    • Validator gRPC server hardened and the proposer authenticated (#1976). See the rollout order below.
    • Multisig entries are validated when converting certificates; a missing signature crashed the validator (#1973).
    • Removed the unimplemented ValidateGER rpc from the validator proto (#1951).
  • Bridge service
    • global_index and amount query params are bounded before parsing, and request headers are limited to 64 KiB (#1975).
    • A malformed from_address / origin_token_address filter is rejected with 400 instead of being ignored (#1999).
    • The client validates bridge service responses (#1997).
  • aggkit-proxy / bridge tracker
    • Upstream requests are bounded (timeouts, connections per host) and only bodiless GET/HEAD is forwarded to the bridge services (#2000).
    • Activity identity, per-owner storage and paging in the store (#1998).
    • The bridge log, receipt and header must agree on the block (#2001).
    • Bridges are tracked by event, not by transaction: new log_index parameter (#2002).
  • Dependencies: gorilla/websocket bumped for GO-2026-6278 (#2004); pending dependency updates unified (#1984).

⚠️ Breaking Changes

  • 🛠️ Config:
    • [RPC] is no longer used (it only logs a warning) and nothing listens on 5576 (#1938).
    • [AdminREST] binds 127.0.0.1 by default; set Host = "0.0.0.0" to reach operator endpoints remotely (#1938).
    • AggOracleCommittee v1 is not supported. A chain whose globalExitRootUpdater is a v1 committee must migrate to a v2 committee or to an EOA before upgrading; with Mode = "auto" aggkit refuses to start (ErrLegacyCommitteeNotSupported). With Mode = "auto", aggkit also fails to start if the updater can't be read or is an unknown contract. AggOracle.EnableAggOracleCommittee is removed (only logs a warning) (#1943).
    • [Validator.ServerConfig]: Host defaults to 127.0.0.1 (set 0.0.0.0 when the proposer runs on another host or container), EnableReflection defaults to false, and MaxDecodingMessageSize defaults to 9437184 (#1976).
  • 🔌 API/CLI:
    • All JSON-RPC methods are replaced by REST endpoints (#1938). GET /aggsender/v1/certificate-header returns only the header; the full certificate is on AdminREST (GET /aggsender/v1/certificate).
    • Aggsender validator: ValidateCertificate requires proposer_signature and request_timestamp. Upgrade the aggsender first, then the validators: a new aggsender works with old and new validators, but an old aggsender is rejected (Unauthenticated) by a new validator. The aggsender and validator clocks must agree within ProposerRequestMaxClockSkew (#1976).
    • aggkit-proxy tracker (api_revision 8): claimed can go back to readyToClaim/pending after a reorg and the terminal status is claimed_finalized; tracking_status only reads finished (and the WebSocket only closes) once the claim is final (#1986). Clients must accept claimed_finalized before this is deployed: agglayer-dev-ui v0.1.2 and @agglayer/sdk 1.0.0-beta.34 do.
    • Tracker tx endpoints without log_index on a tx with several bridges now fail as ambiguous instead of returning the first bridge (#2002).
    • The activity revision/ETag prefix changes from v1: to v2: (one-time cache invalidation), and the client dedup key is bridge_network_id + bridge.deposit_count (#1998).
    • aggkit-proxy /bridge/v1/* answers 405 for methods other than GET/HEAD, 413 for a request with a body and 504 on an upstream timeout (#2000).
    • Bridge service: malformed address filters, global_index and amount values now get 400, and oversized headers 431 (#1975, #1999). Valid requests are unaffected.
  • 🗑️ Deprecated Features: the JSON-RPC API, the AggOracleCommittee v1 (legacy mode) and the ValidateGER validator rpc are removed.

📋 Configuration Updates

# #1938: REST servers and claims endpoint limits ([RPC] is no longer used)
[AdminREST]
Host = "127.0.0.1"
Port = 5579

[AggchainProofGen]
DeveloperMode = false

[ClaimL1Sync]
APIMaxBlockRange = 10000
APIMaxClaims = 1000

[ClaimL2Sync]
APIMaxBlockRange = 10000
APIMaxClaims = 1000

# #1943: AggOracle committee v2 (remove EnableAggOracleCommittee)
[AggOracle]
Mode = "auto"   # direct, committee or auto

[AggOracle.CommitteeV2]
RequestTimeout = "5s"
CollectRetryInterval = "5s"
MaxInjectAttempts = 3
PendingGERTimeout = "0s"

# #1958: multidownloader retry policy (optional, same for [L2Multidownloader.RetryAfterError])
[L1Multidownloader.RetryAfterError]
RetryMode = "delays"
Delays = ["1s", "2s", "4s", "8s", "16s", "32s", "1m4s", "2m8s", "4m16s", "5m"]
MaxRetries = -1

# #1976: aggsender validator
[Validator]
ProposerRequestMaxClockSkew = "1m"

[Validator.ServerConfig]
Host = "127.0.0.1"
Port = 5578
EnableReflection = false

# #1979: aggkit-proxy tracker finality
[Tracker]
L1FinalizedBlock = "FinalizedBlock"
L2FinalizedBlock = "FinalizedBlock"
# [Tracker.FinalizedBlockByNetwork]
# 2 = "LatestBlock/-64"

# #2000: aggkit-proxy upstream limits
[Proxy]
UpstreamResponseHeaderTimeout = "30s"
UpstreamRequestTimeout = "2m"
UpstreamMaxConnsPerHost = 256

ger_validator_signer has its own configuration: tools/ger_validator_signer/config.toml.example. The aggkit-proxy adds the SQLite migration bridgetracker0005.

🔌 API Updates

  • Node API (#1938): JSON-RPC → REST. Read-only on PublicREST, operator actions on AdminREST:

    Former JSON-RPC method Endpoint Server
    aggsender_status GET /aggsender/v1/status PublicREST
    aggsender_getCertificateHeaderPerHeight GET /aggsender/v1/certificate-header[?height=h], GET /aggsender/v1/certificate[?height=h] PublicREST, AdminREST
    aggsender_getCertificateBridgeExits GET /aggsender/v1/certificate-bridge-exits[?height=h], GET /aggsender/v1/certificate-imported-bridge-exits[?height=h] PublicREST
    aggsender_triggerCertificate POST /aggsender/v1/trigger-certificate AdminREST
    l1claimsync_*, l2claimsync_* GET /l{1,2}claimsync/v1/status, /claims?from_block=&to_block=, /claims-by-global-index?global_index= PublicREST
    l1infotreesync_* GET /l1infotreesync/v1/status, /info-by-global-exit-root?global_exit_root=, /info-by-root?root= PublicREST
    multidownloader-l1_status GET /multidownloader/v1/l1/status PublicREST
    multidownloader-l1_reorg POST /multidownloader/v1/l1/reorg?block= AdminREST (developer mode)
    aggkit_generateAggchainProof POST /aggchainproofgen/v1/aggchain-proof AdminREST (developer mode)
  • Proxy API (api_revision 6 → 8): activity endpoint with revision, per-item finalized, ETag/If-None-Match (304); claimed_finalized and bridge_status.block_finalized in the tracker REST and WebSocket; optional log_index on the tracker tx endpoints; /bridge/v1/* limited to GET/HEAD (#1980, #1986, #1998, #2000, #2002).

  • Bridge service API: no endpoints added or removed. Stricter input validation (#1975, #1999), and GET /bridge/v1/last-reorg-event now returns the reorg of the last detection pass that affected the bridge or claim syncer of that network (#1989).

  • New ger_validator_signer API: POST /v1/ger/sign, GET /v1/info, GET /health (#1943).

📦 Release images

The gated release pipeline of #1985 was reverted (#2005) until the repository settings it needs are in place, so images are published as in rc4 (unsigned, X.Y.Z, X.Y.Z-no_shell and X.Y.Z-dev tags).

Full Changelog: v0.12.0-rc4...v0.12.0-rc5