Skip to content

Neo X v0.7.0 adds full transactions to dBFT block proposals

Neo X node operators have until MainNet block 8,530,000 to upgrade to v0.7.0 of BaneLabs’ Go client, the network’s main node software. From that block, validators will include the full transactions in every block they propose, a change intended to stop the network from stalling when a validator can’t find a transaction listed in a proposed block.

BaneLabs released v0.7.0, codenamed Undulation, on Nov. 25, and the change went live on Neo X TestNet at block 11,388,000 on Dec. 1. Neo Global Development published a MainNet upgrade notice on Dec. 3: “Node operators are strongly advised to upgrade before the respective activation block heights.”

The upgrade notice is addressed to node operators. For users and applications on Neo X, the change is meant to keep blocks coming even when transactions are replaced soon after a validator proposes them.

The release follows Neo X v0.6.2 in August. It also moves the client onto a newer version of Geth, the Ethereum software Neo X is built on, and ships a blacklist fix that NNT reported as merged but unreleased when it covered neox-rs v2.8.0, an alternative Neo X client written in Rust.

How Neo X validators agree on a block

Neo X uses dBFT consensus. To produce each block, one validator proposes a list of transactions, and the others check it. The block is final once enough of them have signed off.

Before this change, the proposal carried only a short fingerprint of each transaction, called a hash, rather than the transaction itself. Every other validator had to already hold each full transaction, or fetch it from other nodes, before it could check the proposal.

That dependence stopped Neo X TestNet in March. Validators couldn’t find a transaction listed in the proposal, so they kept abandoning it and starting over with a new proposal instead of producing a block.

A Neo X developer traced the problem to a TestNet wallet that kept sending transactions and replacing them with new versions soon after they were proposed. By the time other validators went looking for a transaction, it had already been swapped out, and even the validator that proposed the block couldn’t supply it.

BaneLabs shipped partial fixes in v0.5.3 in March and v0.6.0 in June, the second adding a cache that lets validators find transactions from recent proposals after they have been replaced. v0.7.0 removes the need for that lookup, except for blob data, by putting the transactions in the proposal itself.

What v0.7.0 changes

From the activation block, each proposal carries the complete transactions, so validators no longer depend on finding them separately (PR #655).

The fix only partly covers blob transactions, an Ethereum transaction type that carries large data attachments called blobs.

The proposal includes the transaction but not its blob data, and according to the change’s description, the missing-transaction problem still applies to them: validators request any missing blob data from other nodes and pass it to the consensus process once collected.

Anna Shaleva, Neo SPCC developer, opened the pull request, and the change builds on Neo SPCC’s dBFT library. Neo SPCC’s N3 client is taking the same approach: NeoGo v0.124.0 ties full-transaction proposals on Neo N3 to Iara, a future hard fork (a change to the network’s rules that every node must adopt at the same block).

Because every node on the network has to handle the new proposal format at the same moment, the change switches on at a fixed block on each network. TestNet passed its activation block at 10:24 a.m. UTC on Dec. 1 and has kept producing blocks since.

At 7:59 a.m. UTC on Dec. 3, MainNet was at block 8,484,733, about 45,000 blocks short of the activation block.

For node operators

The release is an upgrade from v0.6.2, with ready-built programs for Linux computers with amd64 and arm64 processors. Operators stop the node, replace the program, and run a one-off conversion of the node’s database with geth db pebble-upgrade.

The conversion moves the database to the storage format that newer Geth versions use. According to the command’s description, older client versions can still read the converted database.

Operators then run geth init with the network’s updated genesis file, which holds the chain’s settings, including the activation block, without deleting the existing database, and restart the node.

The MainNet activation block was added on Dec. 1, after the release, in an updated genesis file on the release page (PR #690). According to the pull request, a separate v0.7.1 release would not be needed for MainNet if the TestNet upgrade was successful and v0.7.0 needed no further changes.

Other changes

Most of the commits in v0.7.0 come from Geth itself. About 50 of the 973 individual changes, or commits, since v0.6.2 are specific to Neo X, and the rest arrive with the move to Geth v1.17.10 (PRs #651 and #667).

Newer Geth versions expect a set of standard Ethereum system contracts, built-in contracts at fixed addresses that some Ethereum features rely on, to exist on the chain, and those contracts have been deployed on Neo X.

The release also closes a gap in Neo X’s governance blacklist, which blocks transactions from blacklisted addresses and calls to blacklisted contracts.

EIP-7702, an Ethereum feature, lets an ordinary account run a smart contract’s code as if it were its own. Calls to such an account now also fail when the contract it uses is blacklisted (PR #678). This fix is not tied to an activation block and applies as soon as a node runs v0.7.0.

The rest of the release is node maintenance: changes to how blob data is fetched and shared between nodes (PRs #664 and #675), and several bug fixes.

One fix stops a database error, “missing trie node,” that could appear after a node was initialized (PR #657), and another corrects the order in which a node shuts down (PR #673).

Next steps

Neo X MainNet switches to the new proposal format at block 8,530,000. The programs, the genesis files, and the upgrade steps are on the release page.

The full release notes can be found at the link below:
https://github.com/bane-labs/go-ethereum/releases/tag/v0.7.0