Skip to content

NeoGo v0.124.0 sets Huyao hard fork heights for N3, NeoFS

Node operators running NeoGo, the Go implementation of the Neo N3 node, can now upgrade ahead of the Huyao hard fork. Neo SPCC released NeoGo v0.124.0 on Dec. 2, two days after Neo-CLI v3.11.3 set the same activation heights for the C# node.

Neo-CLI and NeoGo are independently written implementations of the Neo N3 node, and every node must reach identical results for every block. A hard fork therefore only works if every client switches on the same rules at the same block.

Huyao activates at block 21,560,000 on N3 TestNet and block 15,990,000 on N3 MainNet. Neo’s upgrade notice estimates those heights will be reached on the evening of Dec. 3 and the morning of Dec. 25 (UTC), and nodes upgraded before then will not need to resynchronize the blockchain.

At 7:50 p.m. UTC on Dec. 2, N3 TestNet stood at block 21,535,162, about 24,800 blocks short of the fork height, while N3 MainNet was at block 15,394,112.

The Huyao code first shipped for the C# core library in Neo N3 v3.11.2 on Nov. 20. NeoGo v0.124.0 brings 190 commits and 72 merged pull requests since v0.123.0 in September.

What changes when Huyao activates

Huyao’s changes were set out in NNT’s Neo-CLI v3.11.3 article. For users and developers, the main ones are:

  • Instructions and system calls whose cost depends on their inputs will be priced by the work they actually do, so packing a large data structure will cost more than packing a small one. Other instructions and most other system calls will get new fixed prices.
  • Contracts will be able to store data that deletes itself when it expires, using a new built-in contract called TemporaryStorage (PR #4327). It is intended to limit how much short-lived data, such as handshakes, temporary proofs, and relay data, adds to the chain’s long-term state.
  • GAS rewards owed to accounts the Neo Council has blocked will go to the Treasury contract instead (PR #4492).

When Neo SPCC presented the pricing model to the Neo Council in April, Anna Shaleva, Neo SPCC developer, described it as a way to make standard transactions cheaper while making malicious ones more expensive.

NeoGo merged its version of the model on Sept. 25 (PR #4087), and v0.124.0 is the first tagged NeoGo release to include it.

For node operators

NeoGo also ships configurations for the sidechains of NeoFS, Neo’s decentralized storage network, and the release sets Huyao heights for them too: block 21,430,000 on NeoFS TestNet and block 22,570,000 on NeoFS MainNet. According to NeoGo’s changelog, the release keeps full compatibility with Neo-CLI v3.11.3.

The changelog also lists a number of security fixes, some of which change how the node behaves, and operators are asked to review its list of behavior changes. Some of these apply as soon as a node is upgraded, without waiting for the fork.

The NeoFS BlockFetcher, an option that syncs a node by downloading blocks from NeoFS storage instead of from other nodes, is now switched off in all default configurations. The NeoFS storage containers it downloaded from no longer exist (PR #4478).

A Notary-assisted main transaction can no longer carry a Conflicts attribute, which marks a transaction as replacing others, the same rule Neo-CLI v3.11.3 applies (PR #4486).

Notary is the service that lets several parties, such as a network’s oracle nodes, sign one transaction. The same change corrects the node’s handling of conflicting transactions waiting to be included in a block.

Operators of oracle nodes, which fetch outside data for smart contracts, also get a fee fix (PR #4504). Without it, NeoGo oracle nodes would have overestimated the fee for checking the signatures on their responses once Huyao activated, and attached higher network fees than C# nodes.

For developers

Applications that read a contract’s stored data in batches through findstorage, a method of the RPC interface applications use to query a node, now continue from the last key they received instead of from a numbered position (PR #4424).

The change matches the C# node and applies on upgrade, so code that pages through storage on NeoGo RPC nodes may need updating.

Neo’s upgrade notice advises that contracts depending on the previous fixed prices should be checked against the new costs before Huyao activates.

The fork also adds a storage call for contracts, System.Storage.FindWithStart, which searches a contract’s stored records from a chosen starting point rather than from the beginning (PR #4408).

For developers using NeoGo’s Go SDK, the RPC client gains ready-made functions for the Huyao methods of the Policy contract, which holds network settings controlled by the Council (PR #4497).

Applications can read the maximum lifetime of TemporaryStorage records and look up when a hard fork activates, and Council members can set that lifetime and schedule a hard fork, without building raw contract calls.

Other changes affect only narrow cases:

  • System.Contract.CreateMultisigAccount, which contracts use to derive a multisignature address from a list of keys, now fails for more than 1,024 keys, as it does on the C# node (PR #4502).
  • Fee charging is corrected for whitelisted contract methods, which the Council can give a fixed fee in place of per-instruction pricing (PRs #4490 and #4498). No contract on N3 MainNet or TestNet currently uses the mechanism.
  • The NeoGo compiler now emits anonymous functions in a fixed order, fixing a problem in which the same source code could compile to different contracts (PR #4442).
  • Go projects that import NeoGo will need to update any code that uses the removed nativeprices package (PR #4508) or stackitem.DeepCopy, which is no longer exported (PR #4414).

Hard forks after Huyao

Until now, every hard fork has required each node operator to install new software and add the fork’s activation height to their configuration. Huyao is the last fork scheduled that way, and from the next one, Iara, the Council will schedule hard forks with a signed transaction through the Policy contract (PR #4377).

Operators will still need node software that supports each new hard fork, because a node that sees an activation for a hard fork it does not recognize will stop.

The release adds Iara and a second hard fork, Jackalope (PRs #4410 and #4446). NeoGo’s documentation describes both as unstable and says neither introduces new functionality yet, although NeoGo has already tied one consensus change to Iara.

When a consensus node proposes a block, its proposal message (PrepareRequest) will carry the full transactions instead of only their hashes (PR #4387). The change will stay inactive until Iara activates.

Next steps

N3 TestNet is expected to reach the Huyao height first, followed by MainNet around Dec. 25. Iara and Jackalope have no activation heights yet, and each will need a Council transaction to be scheduled.

The full release notes can be found at the link below:
https://github.com/nspcc-dev/neo-go/releases/tag/v0.124.0