Neo N3 v3.11.2, released Nov. 20, contains the code for the Huyao hard fork, including dynamic opcode pricing and a new TemporaryStorage native contract. Core developers have also proposed activation heights that would bring Huyao to TestNet in early December and MainNet in mid-December.
The release is the first of the v3.11 line for the C# core library that Neo-CLI is built on. It contains 119 commits, covering 113 merged pull requests, since v3.10.2 and moves the core onto NeoVM v3.11.2.
The Huyao changes stay switched off on MainNet and TestNet until the hard fork activates.
Proposed activation heights
The proposed Huyao activation heights are block 21,610,000 on TestNet and block 15,734,000 on MainNet (PR #4844). At recent averages of about 3.13 seconds per block on MainNet and 3.14 seconds on TestNet, that would put activation around Dec. 5 on TestNet and Dec. 15 on MainNet.
The heights have not yet been added to the configuration files of Neo-CLI or NeoGo, and neither client has published a release containing Huyao.
Dynamic pricing for opcodes and system calls
Once Huyao activates, opcodes whose cost depends on their inputs will be priced by the work they actually perform, and the remaining opcodes will get new fixed prices (PR #4536). The model is ported from NeoGo and uses the data NeoVM v3.11.2 reports after each instruction.
Under Huyao, MODPOW will have a base price of 1,648.443 Datoshi, set from its worst-case execution time, before the execution fee factor is applied (PR #4780).
Huyao also reprices system calls across the System.Runtime, System.Contract, System.Crypto, System.Iterator, and System.Storage namespaces, again following NeoGo (PRs #4760, #4762, and #4769). Notifications, for example, will be charged by the number of items copied.
The release does not change the Council-set execution fee factor. The Neo Council deferred a 100x execution fee reduction in April until dynamic pricing was in place, and no date for that reduction has been set.
TemporaryStorage native contract
Huyao adds TemporaryStorage, a native contract for key-value records that are deleted automatically once they expire (PR #4727). Based on a proposal by Neo co-founder Erik Zhang, it is intended to limit long-term state growth from short-lived data such as handshakes, temporary proofs, and relay data.
Contracts can put, get, delete, find, and renew records, and other contracts can read them by passing the owner’s contract hash. Expiry is set as a timestamp rather than a block height, and the network removes up to 10,000 expired records per block.
Records can last up to 365 days, a limit the Council can lower through the Policy contract (PR #4763). Their price is a share of the normal storage price, proportional to the record’s lifetime out of 365 days (PR #4814).
Hard forks activated by Council transaction
Today, each new hard fork requires node operators to update their software and add its activation height to their configurations. A node that misses that step can keep running with state that differs from the rest of the network.
Huyao adds activateHardfork to the Policy contract, so the Council can schedule later hard forks with a signed transaction instead (PR #4726). The change is intended to remove the reconfiguration step and allow more frequent hard forks.
Huyao itself is still activated through configuration heights. Iara, the hard fork after Huyao, will be the first that can only be activated through the Policy contract. A node that sees an activation for a hard fork it does not recognize will stop rather than continue on diverging state.
Other Huyao changes
GAS rewards owed to accounts the Council has blocked will be minted to the Treasury contract instead of the blocked account (PR #4783). Currently, minting to a blocked account triggers its payment callback, which can abort the operation or cast a new vote.
The hard fork also adds the System.Storage.FindWithStart system call (PR #4751) and makes ECRecover reject invalid signature values (PR #4588). Several changes keep older behavior in place before Huyao so historical blocks replay identically.
Mixed-client testing
The release was tested on a private network of two C# consensus nodes, two NeoGo consensus nodes, and a NeoGo RPC node, with Huyao enabled at block 5. The network handled about 50 transactions per second for five minutes (PR #4844).
After a compatibility fix on the NeoGo side (PR #4506), the Huyao block and standard NEP-17 GAS transfers produced no state differences between the two clients across the 19 blocks compared.
Security and robustness fixes
The release also includes about 30 security and robustness fixes, many credited to outside reporters. Five of the pull requests reference GitHub security advisories, none of which had been published at the time of writing.
Each peer’s outbound message queue is now capped at 1,024 messages and 256 MiB (PR #4778), and nodes now reject uncompressed public keys that are not on the curve (PR #4794). Peers can also no longer direct a node to connect to loopback or private network addresses (PR #4843).
The multisignature witness fix from Neo N3 v3.10.2 is carried into the v3.11 line (PR #4785). The repository’s security policy now describes the Neo Vulnerability Bounty Program, with maximum rewards of US $5,000 for critical findings and $2,500 for high-severity ones (PR #4774).
Changes for developers
Projects built on the core library will need to update their code, because transaction scripts and contract scripts are now stored as Neo.VM.Script objects rather than raw bytes (PRs #4825 and #4828). The change lets a script parsed once be reused during block persistence and across executions.
Storage plugins must also adapt, because the skip option for storage searches has moved into the storage interface (PR #4734).
Next steps
Node operators run Neo-CLI, which is released separately and has not yet been updated to v3.11. That release is expected to carry the Huyao heights. Neo SPCC has said NeoGo will follow a couple of days after the C# node, once MainNet and TestNet states have been checked on the released version.
The full release can be found at the link below:
https://github.com/neo-project/neo/releases/tag/v3.11.2





About The Author: Dean Jeffs
Dean is a digital project manager who has worked extensively with start ups and agencies in the marketing space. Fascinated by the potential applications of blockchain technology, Dean has a passion for realising the new smart economy.
More posts by Dean Jeffs