Over the past month and into this month, development has moved forward across the Nexa ecosystem. Most activity and effort focused on our Rostrum indexer, which we’re updating and improving. We put a lot of effort into achieving much faster synchronization and quicker network notifications.
On the full node side, the Tailstorm protocol keeps getting tougher and is being extensively tested. We’ve already released detailed updates on the ongoing work and improvements, and you’ll find a recap there.
NexScript also hasn’t been forgotten and is receiving updates. It’s 1.2.0-beta. Version 1.2.0-beta gives smart contracts new tools for working with token authorities, and the playground will receive updates that refresh it to a modern platform look.
Wally, the explorer, and our developer libraries also received a long list of improvements, many of them lined up for upcoming releases.
Rostrum is Back in Full Swing
JSON-RPC batch requests are now accepted on TCP, SSL, WebSocket, and HTTP. blockchain.scripthash.listunspent, blockchain.address.listunspent, and the token listunspent methods take an optional cursor. Omitting it still returns the full list, or the existing cap error, so current clients are unchanged. blockchain.scripthash.get_history and blockchain.address.get_history take an opaque cursor as the third argument, as listunspent does. Pages hold whole blocks, about 10,000 entries, and resume with one seek after the last height they read, so a page costs the same at any depth and a history past the 500,000-row cap can be read in full.
A transaction that has just confirmed is no longer listed twice, once confirmed and once as a height-0 mempool UTXO. Nexa Fork1 read-only inputs reference an outpoint without consuming it. Read-only inputs are no longer written as spend rows, for confirmed blocks and when a mempool transaction is added. The referenced output stays unspent, and the transaction is not added to that address history.
New TLS handshakes reload –ssl-cert-file and –ssl-key-file when the file modification time, size, or symlink target changes. The check runs on handshake, at most once a second, so a Let’s Encrypt renewal is picked up without a restart or a deploy hook.
Rostrum captures owned unions of transaction IDs and funded or spent script hashes during block indexing and undo, reusing existing spend-resolution data. Subscription notifications consume those sets instead of re-fetching confirmed transactions and parents. Forward indexing now fetches blocks with getdata on the node’s P2P connection instead of RPC getblock, which sends each block as hex inside JSON.
Hardening Tailstorm
The full node checks for duplicate mininghashes in CheckTailstormSummaryBlockProofOfWork(). It ensures that readOnly inputs within subblocks only use UTXOs that exist at the time of the prior summary block. The subblock is evaluated at its height, and not at the summary block root height.
In order to make an accurate comparison of various potential forks we need a proper set of valid subblocks and uncles to make that comparison. The uncles are included first and subblocks second since uncles could have greater or lesser work than the subblocks and could skew the reorg.
Bans for unrequested thinblocks are removed, since there’s no real threat from receiving an unrequested thinblock. All we want to do is prevent their processing, which is done by returning an error.
Tailstorm: Hardening the Protocol:
Windows Desktop Apps Unfrozen
On Windows, any desktop app that uses libnexakotlin (for example Wally desktop or the Nexa starter example) freezes for good at startup. It hangs the moment Java loads Nexa’s native library libnexa.dll. src/chainparams.cpp has a global object for the stormtest network. The constructor mines the stormtest genesis block every time the library is loaded. Mining needs random numbers and the first use of the random number generator seeds it, and on Windows part of that seed is read from the system’s performance counters. Reading them makes Windows load and run the performance-counter provider DLLs. Loading those DLLs needs the loader lock, which is already held for libnexa.dll. Deadlock: each side waits for the other, CPU stays at 0 %, and the load never returns.
The fix: the stormtest block goes back to #if 0. The stormtest network then uses its hard-coded genesis block instead of mining it at load time, so nothing runs proof-of-work or seeds the RNG inside DllMain. The guard: a new CI job builds libnexa.dll the way the Windows release does, on every pipeline. It fails if the stormtest mining code is back, so this can’t regress unnoticed.
NexScript 1.2.0-beta.1
tokenAmount reads 0 for an authority, so a contract had no way to read an authority’s flags or check what it permits.
-
tx.inputs[i].tokenAuthority / tx.outputs[i].tokenAuthority: the authority field as a signed script number, 0 when not an authority.
-
hasAuthority(flags, required): true when flags is an authority with every bit of required.
-
AUTHORITY_MINT, AUTHORITY_MELT, AUTHORITY_BATON, AUTHORITY_RESCRIPT and AUTHORITY_SUBGROUP global constants.
Unrolled for loops are added to the nexscript grammar, this is only for fixed length loops, once the OP_JUMP fixes come in after the next hard fork, we will add dynamic length for loops.
NexScript Playground: Adds the interactive script step-debugger and wires it into the contract view and transaction builder.
Wally: The Next Release
Wally presents assets to other apps on the phone as virtual files. It re-checks an uncompletable proposal as the wallet changes, and offers to use reserved coins. The app switched to enableEdgeToEdge() on all Android versions. The system bars are now transparent, with the background drawn by the app. The translations are complete, so no locale falls back to English. The local currency setting now starts from the device locale instead of always being blank, and the settings screen shows the currency that is actually in effect.
hasAssets() moved off the UI thread so it does not slow things down or crash the app. The home screen’s Transactions tab loads its history without holding the wallet lock for the whole walk, and stops re-walking everything on every balance change. The send / special-tx / received-nexa success animations no longer get stuck on screen as a frozen Lottie frame drawn over the whole app.
The Explorer
On testnet, /address/ without the network prefix showed the right totals but “No transactions found”. The explorer now redirects to the prefixed URL instead.
The rich list is rebuilt on the per-address UTXO database instead of a stale CSV, so it is always current and self-contained. Two additions to the HODL vaults page:
-
Unlocks chart: a “Still locked” line next to the cumulative unlocks, showing how much NEX stays locked past each window.
-
Vault concentration: vaults grouped by held balance, plus a “top 10 vaults hold X% of TVL” line.
Under the Hood
-
libnexaapp: Client-side QR generation via qrcode-kotlin provided in standard or lightly-styled formats. loginWalletUri now requests no profile fields by default. Callers opt in via requiredInfo/optionalInfo.
-
libnexakotlin: Fix a variety of ANRs reported by Play.
-
Otoplo Wallet 5.3.0: Added an option to refresh known vault balances when displayed values are missing or incorrect.
To Wrap Up
It was another month of constant, active development on the Nexa ecosystem. Many much-anticipated developments are ahead of us, including finalizing the Tailstorm protocol, Blitz hardware acceleration, Wrapped Bitcoin on Nexa, an online card game, and more exciting releases.
To see all developments, we invite the curious to visit Nexa’s official GitLab repository linked below to find the latest updates, developer comments, and other details.
Nexa GitLab:
