Skip to content

v0.11.2

Latest

Choose a tag to compare

@metalisk metalisk released this 30 Nov 17:23
f9c1b0b

ADAMANT blockchain node v0.11.2 is a reliability patch for node operators and delegates. It fixes how a node keeps its unconfirmed (u_*) account state in step with block application, and removes the legacy HTTP API paths that took passphrases.

On mainnet, a node on v0.10.3 stopped syncing at height 55953358 (#313). A delegate registration from the transaction pool had been applied in the middle of a block, after the block confirmed the same registration. The pooled copy wrote the confirmed isDelegate/username fields, the delegate's account row was corrupted, and the next block, which voted for that delegate, failed with Delegate not found. The same code is in v0.11.1.

Upgrade guidance: upgrading is recommended for every node, forging nodes first. This release introduces no consensus change: block and transaction validation, serialization, IDs, signatures, fees, rewards, delegate ordering, activation heights, slot timing and SQL schema are unchanged. A v0.11.2 node accepts and rejects exactly the same blocks as v0.10.x and v0.11.x nodes, so the network can upgrade node by node. It does include breaking HTTP API changes for clients that still sent passphrases to a node; see below and the upgrading guide: https://docs.adamant.im/own-node/upgrading.html

Upgrade with npm ci --omit=dev and a graceful restart. Nodes with encrypted forging passphrases must unlock again with npm run adm-node -- forging unlock.


What's new in v0.11.2

Unconfirmed state and block application (#314, fixes #313)

  • One lock for every pool mutation. Block application, the pool fill job, transaction expiry, the bundled-transaction job, and the sync-time undo/apply of the unconfirmed list now all run in balancesSequence, as block rollback already did. A pooled transaction can no longer be applied in the middle of a block.
  • Unconfirmed delegate registrations stay off confirmed fields. Delegate.applyUnconfirmed/undoUnconfirmed write only u_isDelegate/u_username. On the normal path the resulting rows are identical to before.
  • The pool tracks which unconfirmed transactions are applied. Undo and apply never run twice for one transaction. Before, sync undid the pool and then every block applied during sync undid it again, which credited u_balance twice.
  • Expired transactions are undone before they leave the pool. Before, their u_balance debit and other unconfirmed effects stayed until the next restart.
  • Fork 2 no longer touches the pool. A block that contains an already confirmed transaction is rejected as before, but the node no longer "undoes" a block transaction it never applied.
  • Controlled recovery after a storage failure. If a write leaves the unconfirmed state uncertain, the node stops balance processing and shuts down gracefully with a failure exit code. Startup restores the whole unconfirmed state from the confirmed one, now including the unconfirmed vote and multisignature tables.
  • Same block acceptance as earlier versions. When a transaction in a block fails its unconfirmed apply, the node still applies the block, as v0.10.x/v0.11.x nodes do. It then resets the unconfirmed state from the confirmed one before re-applying the pool.
  • Pool admission: one pending delegate registration per sender; co-signatures must be a bounded list of 64-byte hex signatures; fully co-signed multisignature registrations submitted by clients become eligible for forging.
  • Forging: a delegate leaves pooled transactions that fail verification out of its block and gives the block its own copies, so a refused block can no longer change pooled transactions.

Client-side signing only (#314, closes #310)

The node no longer signs transactions or accepts passphrases.

  • Removed routes (they now answer like any unknown route): PUT /api/signatures, GET /api/signatures/fee (use GET /api/blocks/getFees), PUT /api/multisignatures, POST /api/multisignatures/sign, GET /api/multisignatures/pending, GET /api/multisignatures/accounts, GET /api/transactions/multisignatures, GET /api/transactions/multisignatures/get, GET /api/accounts/getAllAccounts (DEBUG only), and the DApp listings GET /api/dapps, /api/dapps/get, /api/dapps/search, /api/dapps/categories.
  • Rejected request fields: POST /api/transactions, /api/transactions/process, /api/chats/process, /api/states/store, POST /api/accounts/delegates and POST /api/delegates reject secret, secondSecret and multisigAccountPublicKey. The values are never read or logged.
  • Second-signature accounts no longer send secondSecret; their transactions carry signSignature, which verification still requires.
  • POST /api/transactions publishes every transaction type and answers every request (Missing transaction, Unknown transaction type <type>). The OpenAPI request schema covers types 0–9.
  • Malformed request bodies: the error response and log report only the parser error type, never a fragment of the body.
  • Dead code removed: node-side signing helpers, the DApp sandbox API wrappers, the empty crypto module, and js-nacl as a dependency (the genesis tool now signs with sodium-native).

Monitoring (#312)

  • The Zabbix delegate outcome template no longer raises a never-clearing problem for lifetime productivity below 99%. A single missed block no longer opens a HIGH problem: the default is now 2 misses within 30 minutes. Missing data alerts after 1 hour instead of 30 minutes. Re-import tools/zabbix/template_adamant_delegate_outcome.yaml to update linked hosts in place.

Documentation

  • docs/examples/java.md is rewritten. It generates a 12-word BIP-39 passphrase from SecureRandom, derives keys exactly as ADAMANT does, fixes the address encoding (signed BigInteger) and the recipient encoding below 2^56, and includes test vectors checked against the node. The example key on earlier versions of the page was published: never send funds to U608202877917124896.
  • The Swift example warns that its passphrase is public.
  • The upgrading guide has a v0.11.2 section.

Dependencies

Updated within their major versions: sodium-native 5.2.2, z-schema 12.8.0, express-rate-limit 8.7.5, and docs tooling (@redocly/cli 2.82.0, swagger-ui-dist 5.36.0). All pass the 7-day release-age quarantine.

Breaking changes

HTTP API only, listed above under Client-side signing only. A GitHub code search across Adamant-im found no client that uses the removed routes or fields (adamant-api-jsclient included).

Verification

  • npm run test:unit: 1494 passing.
  • npm run test:api on a local network: 419 passing, 9 failing in the full run. All 9 are test-setup issues: 5 cache tests read a different Redis DB than the node, one test compares a different config's activation height, and 3 ordering tests saw a transfer left pending by the previous suite (fixed in 419a29b7). The rerun of the affected suites: 179 passing, 0 failing.
  • Mixed-version network: three v0.11.2 nodes and one v0.11.1 node ran together while the API suite published every transaction type; all four nodes kept an identical chain (1386 blocks, 741 transactions of types 0, 1, 2, 3, 8, 9) and identical confirmed balances, delegates, votes and multisignature tables at the same height. The v0.11.1 node logged no fork.
  • Mainnet: a node with 14 forging delegates has run the release commit since 2026-11-30, in consensus with the network.
  • npm run eslint, cd docs && npm run site:build, and the dependency quarantine on both lockfiles pass.

Full changelog: v0.11.1...v0.11.2