Skip to content

Version 1.6.6 (Testnet + Stagenet)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 20 Nov 11:07
Immutable release. Only release title and notes can be modified.
2c35c26

Attention! This release is for testnet/stagenet only! Not for mainnet.

In this release

This release brings the new feature #27 Finality Improvements, which hardens the Deterministic Finality protocol, as well as significant performance improvements in the RIDE evaluator, block validation and the importer. It also aligns Testnet consensus rules with Mainnet and makes the Docker image run the node as an unprivileged user.

Protocol Enhancements

Once feature #27 Finality Improvements is activated:

  • The proof of possession in a CommitToGeneration transaction is bound to the transaction sender. Before, a proof copied from a pending transaction could be used in another account's commitment, taking the BLS key for the generation period and locking its owner out. The /transactions/sign endpoint produces the new proof automatically once the feature is active; for offline signing, use waves util transaction sign (or sign-with-sk) with --bind-pop-to-sender.
  • Block headers of protobuf blocks are fully validated (e.g. duplicate or unsorted feature votes are rejected), as was already the case for legacy blocks.
  • In finalization voting, only conflicting endorsements that the liquid block already carries are exempt from the generating balance check.
  • Strict Ethereum signature checks (chain id, canonical signatures, order signature size) are enforced.
  • RIDE Standard Library version 9 becomes available on networks where feature #⁠25 has not been activated.

Testnet

Testnet has been rolled back to block 4339234. Sponsored invoke fee fix and stacked generating balance fix, which have been active on Mainnet since height 5481021 (see 1.6.5), now apply on Testnet from genesis.

Node Improvements

Consensus & Networking

  • Blocks and microblocks are validated outside the blockchain write lock, so REST/gRPC API, UTX pool and microblock mining are no longer blocked while a block is being validated.
  • The node rejects forks below the sync boundary (the finalized height, or max-rollback below the tip while finality lags behind).
  • Hardened P2P message deserialization: signature and block id counts are bounded, and block ids of invalid length are rejected.
  • Endorsement processing no longer stops silently after an unexpected error.
  • Handshake timeout no longer shortens to 1 second while the node has no peers.

Mining

  • Key blocks are forged and appended in one step on the appender thread. A node could previously orphan its own newest microblock, even as the only miner.
  • A mined microblock's inv is broadcast in the same step as its append, so peers no longer miss microblocks the next key block builds upon.
  • If forging gave up because the newest microblocks were younger than min-micro-block-age, the miner now retries once they are eligible.
  • Transactions are packed into microblocks using the key block's time bounds instead of the node's clock, so a transaction timestamped too far ahead is no longer packed and rejected over and over.

Performance

  • RIDE evaluator speedup: on a dApp-heavy Testnet range, block import is more than 2x faster. Execution results, complexity and error messages are unchanged.
  • Inner invokes no longer grow the JVM call stack, so a deep chain of invokes cannot cause StackOverflowError on nodes with a small thread stack.
  • SetScript transactions cache estimations of recently set scripts.
  • Faster block append: linear fee summation, VRF check caching, cheaper generating balance lookups, RocksDB writes sorted by key, and partitioned index and filter blocks.
  • log.trace messages are no longer built when no appender is configured for TRACE.

REST API

  • Addresses whose balance changes net to zero (e.g. a matcher whose order fees equal the exchange fee, or a zero-amount transfer recipient) are now included in the address transaction index, so they appear in /transactions/address/{address}. This applies to transactions appended after
    the update.
  • /utils/script/evaluate enforces the same call result limits as the blockchain (e.g. the data entry limit across the whole call tree).
  • RIDE arithmetic overflow keeps the long overflow error message on JDK 22+. Previously, a node running on JDK 22+ could stop with a NullPointerException while storing a block with such a failed invoke.

Command Line Tools

  • waves util rollback-to <height> rolls the state back offline, refusing to go below the safe rollback height.
  • waves util state-hash [<height>] prints the same JSON as /debug/stateHash/{height}, offline.
  • waves util compact-tx-meta runs a full manual compaction of the tx-meta column family (the node must be stopped).
  • waves util truncate-cf and compact-tx-meta fail with No database at <dir> instead of silently creating an empty database when pointed at a wrong directory.
  • Util commands no longer hang on exit when Kamon metrics are enabled.
  • waves import resumes dropped or stalled HTTP(S) downloads from the last consumed byte, and is significantly faster: blocks are parsed and VRF proofs are checked ahead of the appender.
  • waves export is about 40% faster, writing stored block and transaction bytes directly (output is byte-identical), and fails fast when the config belongs to another network.

Docker

  • The node runs as the unprivileged waves user (uid 999) instead of root. On startup, the entrypoint takes ownership of /var/lib/waves and /var/log/waves, including data left root-owned by older images. A config directory mounted at /etc/waves must be readable by uid 999. docker run --user ... is honoured as given.
  • JAVA_OPTS is parsed quote-aware; a parse error stops the start instead of silently dropping the image's JVM options. Wallet seed and password are passed without re-parsing, so quotes and backslashes in them are preserved.
  • Native libraries (Amazon Corretto Crypto Provider, RocksDB) are bundled at build time instead of being downloaded.

Logging

  • The root logger level is DEBUG unless logback.stdout.level or logback.file.level is set to TRACE. A custom logback.xml that needs TRACE output must set <root level="TRACE"/> itself.
  • waves.miner.private-keys is no longer printed with the node configuration on startup.

RIDE JS

  • The @waves/ride-js npm package is now built from the node repository, from the same commit as the compiler.

Activation

To activate the improvements listed above, vote for feature #27 Finality Improvements.

Update notes

This release is mandatory for Testnet and Stagenet nodes. Testnet has been rolled back to block 4339234. You will need to either re-sync your node from scratch, or download latest state snapshot from blockchain-testnet.wavesnodes.com