github AvianNetwork/Avian v5.0.6
Avian Core 5.0.6 - Smaug

one hour ago

⚠️ Consensus release: pools and every 5.x node should upgrade

Avian Core 5.0.5 restored the asset rules that Avian 4.x enforces. This release closes the remaining places where a 5.x node accepted or refused a block differently from 4.x: how asset scripts are parsed and classified, how a burn output is recognised, how witness v1 outputs are validated, and how the mempool tracks asset state.

Pools first, then everyone running 5.x. A node on 5.0.5 or earlier can refuse a block the 4.x majority accepts, and leave the chain, or build a block the majority refuses.

After upgrading

  • From 5.0.5: no reindex, no resync and no rebuild. The asset database format is unchanged.
  • From 5.0.0 to 5.0.4: the asset database is rebuilt once at the first start, as in 5.0.5. The node does not answer RPC calls until it is done.
  • Pruned nodes coming from 5.0.0 to 5.0.4: the rebuild reads every block, so a pruned node cannot do it. It stops at start and says so, and has to download the chain again with -reindex.
  • The restored rules have no activation height. The whole mainnet chain up to block 5,425,627 was validated under this release and no block was refused, so an upgraded node stays on the chain it is on.

Consensus

  • Asset script parsing and classification match 4.x. OP_AVN_ASSET ends script parsing, the optional hash field of an asset is read as 4.x reads it, and a reissue payload cut short before its name-service field is refused. Two script layouts that only 5.x recognised are now gated behind a deployment that is not scheduled. (#277, #281)
  • Burn outputs. The burn output of an issuance, a reissue or a tag is found in every script 4.x finds it in. 5.x recognised only the exact 25-byte script and refused the transaction, and its block, when the burn was written another way. (#285)
  • Taproot is not enforced. 5.x applied Taproot rules to every block although the deployment is not active on any Avian network, where 4.x treats a witness v1 output as an unknown upgrade. (#278)
  • Reissues. A block is never refused for the reissue this node's own mempool happens to hold, and a reissue of a restricted asset records its verifier string as 4.x does. (#285)
  • RIP-25 revision 2, test networks only: the ML-DSA-44 signature context now differs on every network, and a witness v2 program wrapped in P2SH is charged no sigop cost. Nothing changes on mainnet, where the deployment is not scheduled. (#276)

Other changes

  • Mempool: asset conflicts are tracked, so a transaction a block has made invalid is evicted together with the transactions that spend it, and a second issuance of a name, unique assets included, is refused. A package of transactions is not evaluated when it holds an asset transaction; those are accepted one at a time. (#279, #285, #286, #288)
  • Mining: block templates are checked against the asset rules. When a mempool transaction fails them, it is removed and the template is built again, where every template used to fail until the transaction expired. (#279, #286)
  • Stratum v2: a template that cannot be built no longer stops the node. The client is kept and the build is tried again a second later. (#288)
  • Asset database: the rebuild runs before blocks on disk are connected, so a node stopped in the middle of a flush no longer finds a valid block invalid. -reindex-chainstate empties the asset databases as -reindex does. -reindexassets is refused on a pruned node before anything is erased, and the rebuild fails on a block it cannot read instead of skipping it. The rebuild also keeps each block file open while it reads, which is where a Windows node spent most of its time. (#281, #287, #288)
  • Wallet: building an asset transaction no longer risks a deadlock against an arriving block. Change never goes to an ML-DSA-44 output before that deployment is active. (#280, #287, #288)
  • GUI: the send-asset form shows the balance of an administrator asset instead of "(unknown)". (#282)
  • RPC: listassets shows a reissued amount as soon as the reissue is in a block. (#283)
  • P2P: a header naming a proof-of-work algorithm that does not exist is refused before its difficulty limit is looked up. (#287)
  • RIP-25: conformance vectors and result-checking fuzz targets for the ML-DSA-44 verifier, hardened-only mldsa44() derivation, and a liboqs version check at build time. (#272, #273, #275)
  • CI: the unit tests also run on ARM64 Linux and macOS. (#274)

If an earlier 5.x release left your node stopped

A node that stopped at a block after -reindex-chainstate on 5.0.5 or earlier keeps that block marked invalid. Start it once with -reindex.

📄 Full release notes, with upgrade instructions and compatibility.


What's Changed

  • RIP-25: ML-DSA-44 verify conformance vectors, backend agreement check, and fuzz targets that check results by @cdonnachie in #272
  • descriptor: require every mldsa44() derivation step to be hardened by @cdonnachie in #273
  • ci: run the unit tests on ARM64 Linux and macOS by @cdonnachie in #274
  • RIP-25 review follow-ups: liboqs version check, witness weight constant, dummy signer comments by @cdonnachie in #275
  • RIP-25 revision 2: network-unique signing context, no sigop cost for P2SH-wrapped programs by @cdonnachie in #276
  • Asset script parsing and classification parity with 4.x by @cdonnachie in #277
  • consensus: honour the Taproot deployment by @cdonnachie in #278
  • mempool, reorg: keep asset state consistent with 4.x by @cdonnachie in #279
  • wallet: fix cs_main/cs_wallet deadlock in asset transaction builders by @cdonnachie in #280
  • assets: reissue parse parity, pruned-rebuild safety, and a reindex speedup by @cdonnachie in #281
  • qt: show the balance for an administrator asset transfer by @cdonnachie in #282
  • rpc: show uncommitted reissues in listassets by @cdonnachie in #283
  • release: v5.0.6 by @cdonnachie in #284
  • Burn output parity with 4.x, a mempool eviction crash, and the reissue lock by @cdonnachie in #285
  • mempool: keep templates buildable when an asset transaction is invalid by @cdonnachie in #286
  • Start-up asset database fixes, a proof-of-work bounds check and an ML-DSA wallet guard by @cdonnachie in #287
  • Review follow-ups for 5.0.6: eviction locking, Stratum v2 template failure, packages, reissue lock, pruned rebuild by @cdonnachie in #288
  • doc: final 5.0.6 release notes by @cdonnachie in #289

Full Changelog: v5.0.5...v5.0.6

Don't miss a new Avian release

NewReleases is sending notifications on new releases.