Upgrading to v0.11.0
This page summarizes breaking changes, configuration migrations, and operational updates introduced in ADAMANT Node v0.11.0.
Breaking HTTP API Changes
Removed Legacy Forging and DApp Runtime Control APIs
Starting in v0.11.0, the node no longer exposes:
- Legacy forging HTTP control routes:
enable,disable,status,enableAll, anddisableAll. - Legacy DApp runtime and server-side signing routes: install, launch, stop, uninstall, state-inspection, server-side signing/withdrawal, dynamic per-DApp routes, and DApp peer runtime routes.
Migration and consensus impact:
- Forging: Configure delegates solely via
forging.secretinconfig.json. Changing the configured delegate set requires editingconfig.jsonand performing a graceful restart (waiting forCleaned up successfully). Legacyforging.access(whiteList) remains loadable in existing configs for upgrade compatibility and is ignored. - DApp transactions (types 5, 6, and 7): Consensus behavior is unchanged — DApp registration (
type 5), in-transfer (type 6), and out-transfer (type 7) keep their exact validation, serialization, fees, apply/undo, and replay rules. Clients must sign those transactions locally and submit them through the standard transaction API (POST /api/transactions). Existingdappblocks (masterrequired,masterpassword,autoexec) in olderconfig.jsonfiles remain loadable and are ignored.
Strict and:-Only Filter Validation on States, Chats, and Chatrooms
On /api/states/get (GET and POST), /api/chats/get, and /api/chatrooms/*:
- All filters combine exclusively with
AND. and:-prefixed field names (for exampleand:senderId,and:key,and:type) are accepted and normalized to the plain field name.or:-prefixed filters are now rejected withOR filters are not supportedinstead of being silently ignored.- Unknown query fields (including passing
userIdas a query parameter on/api/chatrooms/{address}) and conflicting values between plain andand:-prefixed names (for examplesenderId=U...&and:senderId=U...with different addresses) are now rejected.
See Transactions Query Language.
Operator Configuration Migrations
Node.js and npm Requirements
- Required Node.js runtime:
22.22.2+on the22.xline, or24.15.0+(package.jsonengines.node: ^22.22.2 || >=24.15.0). Node.js24.0.0–24.14.xis not supported for the development toolchain. - Install dependencies strictly from the reviewed lockfile (
npm ci --omit=devfor production operators,npm cifor development). - See Installation.
Anti-Abuse Limits (max: 0 Migration)
v0.11.0 enables production HTTP and WebSocket anti-abuse limits by default in config.default.json:
- Public REST (
/api/*): aggregate cap15300/min with per-class capsstatus(12000),read(3000), andpublish(300). - Peer HTTP (
/peer/*): aggregate cap44000/min with per-class capsstatus(20000),sync(12000), andbroadcast(12000), fixed HTTP429status, and mixed-version negotiation viaX-Adamant-Rate-Limit: 1. Note that inv0.11.0,/peer/*requests omittingX-Adamant-Rate-Limit: 1are skipped for mixed-version rollout compatibility withv0.10.xpeers — hostile clients omitting that header are not throttled in-node, so enforce outer rate limits on/peer/*at your reverse proxy or firewall (see Security Recommendations). - Client WebSocket (
wsClient.limits) and Node WebSocket (wsNode): active and pending connection pools, connection-attempt windows, per-socket subscription caps, subscription rate windows, and peer event caps.
Action required for existing configs:
- If your existing
config.jsonstill containsapi.options.limitsorpeers.options.limitswithmax: 0, the node keeps that surface disabled and logs a warning at startup. - Delete the
api.options.limitsandpeers.options.limitsblocks fromconfig.jsonto inherit the fullv0.11.0defaults (including per-classroutes), or explicitly configurelimitabove0. - Review
trustProxy: enable it only when the node is reachable exclusively through one immediate reverse proxy (rightmostX-Forwarded-Forhop). See Configuration — Server Configuration.
Optional Encrypted Delegate Passphrases
Operators can now encrypt forging.secret entries with an operator password (admnode-enc-v1., AES-256-GCM + scrypt) using npm run adm-node -- forging encrypt.
- Plaintext passphrases continue to work unchanged.
- Before switching to encrypted secrets, verify the node directory is not group- or world-writable (
chmod g-w,o-w /home/adamant/adamant). - Set up local lock-state monitoring (Monitoring) and include
npm run adm-node -- forging unlockin every planned restart runbook.
Reliability and Operational Improvements
- Hardened installers and repair script: Run
tools/install_node.sh,tools/install_node_centos.sh, andtools/fix_node.shfrom a verified Git checkout; snapshot restores require an independently trusted SHA-256 checksum file, andfix_node.shverifies the snapshot before dropping the database by default. - Bounded peer probing and peer-table limits: New
peers.optionscontrols (updateConcurrency,probeSpacingMs,maxProbeTargets,unverifiedProbeLimit, exponential backoff/eviction, and per-IP/per-subnet caps). - PostgreSQL connection recovery: Pool connect timeout (10s), TCP keepalive (10s for pure-JS driver), and post-migration query timeout (300s) prevent stuck queues after dropped database connections; coordinated graceful shutdown before planned DB restarts remains recommended.
- Mem-table checkpoint height validation: Checkpoint creation validates block heights to prevent persisting state ahead of the checkpoint block.
- WebSocket peer rotation: Outbound WebSocket teardown consistently resets
syncProtocolduring peer rotation.