Skip to content
Crypto.world

The Ledger

Zcash Foundation Details Zebra Work After NU7 Activation

The Zcash Foundation says its engineers are stabilizing Zebra performance improvements after NU7 activated on Mainnet. The work includes changes to peer recovery, database errors, block verification and testing, but the updates are merged into the main branch and are not yet in a published release.

Zcash Foundation Details Zebra Work After NU7 Activation

Stabilization after NU7

NU7 activated on Mainnet on November 6 at height 3,543,405, and the Zcash Foundation says its recent engineering work has focused on stabilizing Zebra Ándale performance improvements for miners. The changes in the Foundation’s November 16 update have been merged into Zebra’s main branch, but are not yet part of a published release.

The update covers node recovery and diagnostics as well as performance. It also describes changes to testing and work in other Zcash repositories, including cryptography libraries used by Zebra.

Peer recovery and diagnostics

A Zebra node that cannot connect to its initial peers at startup now retries those peers and its DNS seeders at most once every five minutes. If DNS fails, it can try peers saved from earlier connections. Zebra also stops advertising addresses as block-serving peers when it has never connected to them.

The Foundation says changes to database handling are intended to make failures clearer. When the state database cannot be opened, zebrad now displays the underlying error rather than defaulting to a message that another zebrad process is running. That can help identify a missing disk, a permissions problem or a full disk.

Commands that only read the database, including zebrad tip-height and zebrad copy-state, no longer leave a temporary directory behind after each run. If stored block data is incomplete, Zebra now reports an error rather than returning only part of a block.

The engineering update also reports a change to block processing: Zebra computes Merkle roots for large blocks in parallel and no longer copies entire blocks into tracing data when committing them. The team removed the experimental elasticsearch feature, saying it made syncing much slower and that it had found no users of the feature.

Testing and verification

The Foundation’s nodes now send more information to Sentry, its error-tracking service, so engineers can compare next and main nodes block by block and investigate stalls. The collected details include how long a new block takes to become the tip, why syncing restarted, the type of block error, block counts, mempool and disk sizes, and stack traces pointing to Zebra code.

Unit tests in the merge queue now run on a larger machine and take about 4.5 minutes instead of about 14. After database format changes, continuous integration starts from the previous version’s saved state rather than syncing from scratch, a process that took about 11 hours for the NU7 release. Failed integration tests on main are now reported separately from infrastructure failures.

For verification work, the Foundation contributed speedups to reddsa, pasta_curves, halo2, bellman and librustzcash. In a benchmark cited in the update, a large block’s transaction parsing time in librustzcash fell to 7.5 milliseconds from 21.8 milliseconds. The Foundation said Zebra will use the library changes once they are released, in the order listed in its tracking issue.

Other repositories and future work

The Foundation said upcoming Zebra releases will bring Zebra Ándale improvements—including faster block templates, block relay and block verification—to every operator. Its other performance work aims to help Zebra sync faster from scratch, verify each block with less work and optionally use less disk space.

The team also rebuilt Zebra Launcher, its desktop app for running Zebra, and renamed it Zeal. The app includes a block explorer that reads only from the user’s own node, an experimental light client server and a choice of stable, beta or nightly zebrad; it has not been released.

Zinder, the Foundation’s indexer for light wallets through a lightwalletd-compatible interface, now reads NU7 blocks and has been tested against a Zebra 7 Regtest chain through NU7. Its latest published release is v0.15.1. The Foundation also said its DNS seeder deployments now use zfnd/zeeder as their main image name, while zfnd/dnsseeder continues to receive every release.

Sources

  1. Original source Zcash Foundation forum.zcashcommunity.com

Related stories

Explore

More articles