Go-zenon v0.0.10: what to expect at the community spork renewal

go-zenon v0.0.10: what to expect at the community spork renewal

This post explains how v0.0.10 behaves when the community spork address is used inside its renewal window, what happens to nodes that have not upgraded, and how we tested it. If you run a pillar or a public node, please read the operator checklist at the end.

Short version

  • Nothing changes until the community spork address actually makes a spork call inside the window. The window starts at momentum 14,567,887, targeted for 3 November 2026 at 12:00 UTC. Until such a call is made, v0.0.8, v0.0.9 and v0.0.10 stay on the same chain.
  • The first momentum that carries that call’s contract receive splits the network. v0.0.9 and v0.0.10 accept it. v0.0.8 rejects it. From then on there are two chains, and they are not compatible.
  • Nodes still on v0.0.8 stop advancing when an upgraded pillar produces that momentum, for as long as they can reach an upgraded peer. They do not crash, but their chain stays at the fork point.
  • Nodes on v0.0.10 keep going whichever side produces that momentum. They reject the v0.0.8 branch, stop talking to the peers that serve it, and keep producing.
  • v0.0.9 is not enough. It follows the upgraded chain, but it lacks the fixes that keep a node alive and producing through the fork. Please upgrade v0.0.8 and v0.0.9 nodes to v0.0.10.

Why there is a split

From the renewal start height, v0.0.9 and v0.0.10 accept spork-contract calls from the community spork address again. v0.0.8 has no renewal window and still denies them.

The call itself is an ordinary send, and every version accepts the momentum that contains it. The split comes one step later. A pillar generates the embedded contract’s receive for that send, and the receive is computed differently by each version. On v0.0.9 and v0.0.10 the receive succeeds and the spork is saved. On v0.0.8 the receive is denied, so a v0.0.8 node computes a different result and rejects the momentum that carries the upgraded receive. It logs:

error while applying account-block ... auto-received block has different changes-hash expected <hash> but got <hash>
Block import failed momentum-height=<height>

The fork point is the momentum just before the first one that carries the receive. In our tests the receive landed between 1 and 11 momentums after the send.

What happens next depends on who produces that momentum

Chains are compared by height, not by pillar weight. Each side produces momentums at its own pillars’ share of the slots. So the side holding more pillar weight grows faster. But the very first momentum after the send is decided by slot order, which means it is partly luck. The more pillar weight runs v0.0.10, the more likely that first momentum comes from an upgraded pillar.

Case A: an upgraded pillar produces the first momentum after the fork

This is the expected case if most pillar weight has upgraded.

  • Upgraded nodes continue normally on the chain with the new spork.
  • v0.0.8 nodes see a taller chain on an upgraded peer, roll back to the fork point to sync to it, fail on the receive, and drop the peer. A v0.0.8 pillar still produces its own next momentum in its slot. The next sync attempt against the taller chain rolls it back again. This repeats every few seconds, so the v0.0.8 chain never gets past the fork point. Nothing crashes, but the node is effectively halted.
  • This does not resolve on its own. A v0.0.8 node only advances if it cannot reach any upgraded peer, or if its own branch is taller.

Case B: a v0.0.8 pillar produces the first momentum after the fork

  • Upgraded nodes reject that momentum as invalid. They remember it, so the same momentum is refused straight away when it is offered again, whoever offers it. They quarantine the peer that served it for one hour, and refuse that peer’s reconnection attempts during that time. They then produce their own momentum on top of the fork point.
  • Both chains advance side by side. Each grows at its own pillars’ share of slots, and the upgraded side ends up peered almost only with upgraded nodes.
  • When an upgraded node first meets a v0.0.8 branch that is already several momentums taller, it can still roll back once before it finds the branch invalid. It then recovers from upgraded peers within seconds. This cost no crash and no lost momentums in any test, but it does show up as a reorganisation in the logs.
  • Once the upgraded chain becomes the taller one, v0.0.8 nodes still in contact with upgraded peers would be pulled back as in case A. From the code we expect this as long as a v0.0.8 node is no more than 30 momentums past the fork point. Beyond that, nodes refuse to roll back at all and keep their own branch. Our test networks had equal weight on both sides, so the upgraded chain never overtook the v0.0.8 chain in a test. This part is expected from the code, not observed.

What you will see in v0.0.10 logs

When an upgraded node rejects the v0.0.8 branch and protects itself:

quarantining peer after rejected side-chain ... period=1h0m0s
refusing quarantined peer ...
batch carries a momentum rejected earlier, refusing before applying it ...

You may also see repeated Block import failed lines from v0.0.8 peers that keep offering short pieces of their branch. Those are refused before anything is applied. It is log noise, not a stall.

What v0.0.10 changes for the fork

These changes only matter when a node meets the other branch. On a single, healthy chain they change nothing.

  • No crash after rolling back the spork. Before v0.0.10, a node that rolled back the momentum which created the spork crashed on its next momentum and could not restart without a resync. In our earlier test runs this took down most of the upgraded pillars on the losing side. v0.0.10 skips the deleted record, so the rollback is harmless. This bug is also present in v0.0.9.
  • Pillars keep producing while a taller invalid branch is in view. Before v0.0.10, a pillar stopped producing whenever any connected peer advertised a higher chain, valid or not. One v0.0.8 peer could mute an upgraded pillar indefinitely. v0.0.10 gates production on real sync progress instead. A taller peer that never delivers anything this node can import mutes the pillar for about a minute at most.
  • Rejected branches are remembered, and the peers serving them are quarantined. A momentum rejected on a consensus check is remembered for one hour, keyed on the exact bytes that were served. The peer that served it is refused for one hour. This stops a v0.0.8 peer from making an upgraded node roll back and re-validate the same branch every few seconds.

v0.0.10 also contains security fixes unrelated to the renewal. Advisories with the details will be published separately.

How we tested it

Code-level testing

  • Unit and regression tests. Every fix has tests, and for each one we checked the test fails when the fix is removed. The full suites pass under the race detector.
  • Independent review. Every change was reviewed by an independent reviewer who reran the tests on a different platform, and by automated reviewers. The fork fixes went through public review on the dev branch first: issues #239 to #241 and the pull requests that fixed them there.

Mixed-version network rehearsal

We ran a private local network with v0.0.8 and v0.0.10 nodes side by side. To keep the rehearsal faithful, the test binaries change only what a local network needs:

  • the renewal window starts at height 60 instead of 14,567,887,
  • the community spork address is a test key that we control,
  • the version string marks the build as a test build.

The builds with the fork fixes also carried an optional peer-discovery configuration change, used only to keep the network layout identical between runs.

The v0.0.8 binary is the released v0.0.8 with only the community spork address swapped to the same test key. Every run made one spork call from that address inside the window and then watched both sides.

Runs on the earlier v0.0.10 build, without the fork fixes. These showed the problems the fixes address:

Run Network First momentum after the fork Result
2 4 nodes upgraded v0.0.8 halted at the fork point; its own momentum was re-produced and rolled back five times in 2.5 minutes
3 4 nodes, v0.0.8 cut off after the fork upgraded with no upgraded peer in reach, the v0.0.8 nodes advanced on their own chain
4 10 nodes, 3 of 5 pillars upgraded v0.0.8 every upgraded node halted at the fork point, then all three upgraded pillars crashed on the spork rollback
5 10 nodes, upgraded nodes on a static, trusted mesh with discovery off upgraded v0.0.8 halted at the fork point; when we forced the reverse case, an upgraded node rolled back 19 momentums and crashed. Static peering did not protect it
6 20 nodes, 6 equal-weight pillars per side v0.0.8 every upgraded node halted at the fork point and 4 of 6 upgraded pillars crashed

Runs on the v0.0.10 build with the fork fixes. Same 20-node network: 10 nodes per side, 6 equal-weight pillars per side, 9 runs on 2026-11-04:

Runs First momentum after the fork What we did Result
7, 9, 11, 12, 13 upgraded watched the v0.0.8 side halt at the fork point, then forced the hard case: we isolated the v0.0.8 nodes until their branch was taller and reconnected everything both chains advanced side by side for the full 10-minute watch; no crash; first contact cost up to two reorganisations per upgraded node in some runs and none in others, each recovered within about 10 seconds
8, 10 v0.0.8, natural watched for 12 minutes both chains advanced; up to one rollback per upgraded node before the protection applied. This gap was then fixed
14, 15 v0.0.8, natural (run 15 arranged deliberately) watched both chains advanced; no upgraded node rolled back onto the v0.0.8 branch; the first quarantine came within 20 to 50 seconds

Across all nine runs with the fixes, no node crashed, every upgraded pillar kept producing, and the two sides separated themselves by quarantine.

Seeder check

We probed all 116 seeders compiled into the node with a real handshake. 10 answered, and none of those ran anything newer than v0.0.9. A fresh node bootstraps from that list, so upgraded seeders matter.

What we have not tested

  • Mainnet pillar weights. Our networks had equal weight per side. On mainnet the split of weight decides how fast each chain grows.
  • Long durations. Watches lasted minutes, not hours or days.
  • The upgraded chain overtaking a v0.0.8 chain that won the first momentum. Case B’s last bullet is expected from the code, not observed.
  • v0.0.9 nodes in the mix. Their behaviour is inferred from the code, which matches the pre-fix v0.0.10 build in the runs above.
  • A public testnet rehearsal. Not run yet.

Operator checklist

  1. Upgrade every v0.0.8 and v0.0.9 node to v0.0.10 before any spork call is made from the community spork address. [link to release]
  2. Seeder operators: please upgrade first. New nodes bootstrap from you.
  3. If your node was still on v0.0.8 when the split happened, upgrade it. If it stayed at the fork point, which is the usual case, v0.0.10 should sync onto the upgraded chain. We expect that from the code, but have not tested it.
  4. If your v0.0.8 node ran more than 30 momentums on its own branch, it will not roll back onto the upgraded chain by itself. Resync it from scratch on v0.0.10.
  5. If you see quarantining peer after rejected side-chain in v0.0.10 logs, your node is doing what it should. No action is needed.

Questions and logs are welcome in this thread.

2 Likes

Follow-up: what happens when the upgraded chain overtakes a v0.0.8 chain

In the first post we said one case was “expected from the code, not observed”: v0.0.8 produces the first momentum after the fork, and later the upgraded chain grows taller. We have now tested it. v0.0.10 behaved exactly as expected, but the v0.0.8 side did not, and two items in the first post need correcting. Corrections are at the end.

Short version

  • If v0.0.8 wins the first momentum after the fork, the split did not heal when the upgraded chain became taller. In both test runs the v0.0.8 nodes kept producing on their own chain, at their full share of slots, after the upgraded chain overtook them.
  • The reason is v0.0.10’s own protection. Within about a minute of the fork, v0.0.10 nodes quarantine the v0.0.8 peers that serve them the invalid branch, and refuse those peers before the handshake. A refused v0.0.8 node never learns how tall the upgraded chain is, so it is neither pulled back nor halted.
  • v0.0.10 was unaffected. No upgraded node rolled back onto the v0.0.8 branch, and none crashed. Upgraded pillars lost a few slots in the first minute after the fork and none after that, whichever chain was taller.
  • Upgrading a v0.0.8 node in place, keeping its database, did not move it onto the upgraded chain. It ran v0.0.10 but kept following the v0.0.8 chain. An upgraded pillar in that state kept producing on the v0.0.8 chain.
  • Resyncing from an empty database on v0.0.10 worked every time. The node was on the upgraded chain within about 20 seconds.
  • The advice is unchanged, and now stronger: upgrade before any spork call is made. If a node ends up on the v0.0.8 branch, resync it from scratch on v0.0.10.

What we ran

Same private test network as before: 20 nodes, 10 on v0.0.8 and 10 on v0.0.10, six equal-weight pillars per side. We made sure v0.0.8 produced the first momentum after the fork by briefly pausing the upgraded pillars across the spork call. Then we stopped the v0.0.8 pillars, and only the pillars, so that the upgraded chain could overtake. The other v0.0.8 nodes stayed online and connected.

How deep the fork is matters, because a node will not roll back more than 30 momentums. So we ran two cases:

  • Run 16, shallow: the upgraded chain overtakes while the v0.0.8 branch is only 15 momentums past the fork.
  • Run 17, deep: both chains run connected until each is more than 30 momentums past the fork, then the upgraded chain overtakes.

After each run we tested two recoveries on v0.0.8 nodes: an in-place upgrade to v0.0.10 keeping the database, and a resync from an empty database on v0.0.10.

Run 16: shallow overtake

Time (UTC, 5 Nov) Event
14:19:37 Fork at height 63; a v0.0.8 pillar produces the first momentum after it
14:24:18 v0.0.8 at 78 (15 past the fork), v0.0.10 at 71. v0.0.8 pillars paused
14:27:58 v0.0.10 at 81, taller than v0.0.8’s 78. v0.0.8 pillars resumed
14:28 to 14:38 Watched: v0.0.10 81 → 110, v0.0.8 78 → 108
14:38:01 One v0.0.8 node upgraded in place
14:43:03 Another v0.0.8 node resynced from an empty database

What happened:

  • Every upgraded node quarantined 5 to 9 v0.0.8 peers at first contact, and none rolled back.
  • The v0.0.8 side did not fall back to the fork point. We expected the v0.0.8 nodes to roll back to the fork point and stay there, as in the first post’s case A. Instead, after the overtake both sides produced every one of their slots for the full 10 minutes. Five v0.0.8 nodes sampled just after the overtake had no upgraded peers at all.
  • The expected mechanism did fire once. One v0.0.8 pillar had been paused during first contact, so the upgraded nodes had never quarantined it. When it resumed it connected to eight upgraded nodes. It rolled back from 78 to the fork point, imported one upgraded momentum, failed on the next one’s spork receive, and in the same second was pulled back onto the v0.0.8 chain by a v0.0.8 peer.
  • About five minutes after the overtake, the v0.0.8 branch passed 30 momentums past the fork. From then on, v0.0.8 nodes that met the upgraded chain refused to roll back at all (“Too far”).

Run 17: deep overtake

Time (UTC, 5 Nov) Event
14:59:41 Fork at height 63; a v0.0.8 pillar produces the first momentum after it
15:11:44 Both past 30: v0.0.8 at 101, v0.0.10 at 94. v0.0.8 pillars paused
15:15:04 v0.0.10 at 104, taller than v0.0.8’s 101. v0.0.8 pillars resumed
15:15 to 15:33 Watched: both chains 104 / 101 → 155, taking turns being taller
15:33:09 One v0.0.8 pillar upgraded in place
15:38:10 Another v0.0.8 node resynced from an empty database

What happened:

  • The upgraded side was unaffected. No rollbacks and no crash. Upgraded pillars missed 5 slots, all in the first 55 seconds after the fork, and none after that. That includes the stretch where the v0.0.8 chain was taller and more than 30 past the fork. We had flagged that stretch as a possible cost, and it turned out not to be one.
  • No rollback on either side after the overtake, as expected.
  • The v0.0.8 chain did not halt. We expected v0.0.8 pillars to go mostly quiet while a taller peer was in view. Instead they produced 57 of their 57 slots, and the v0.0.8 chain grew from 101 to 155 in 18 minutes, the same rate as the upgraded chain.
    • The v0.0.8 pillars kept trying to connect to upgraded nodes, more than 100 times each. Nearly every attempt was refused at the handshake.
    • The few connections that did get through hit “Too far” and were dropped at once.
    • So at production time a v0.0.8 pillar rarely had a taller peer registered, and nothing stopped it producing.

Recovery, both runs

Run 16 Run 17
In-place upgrade to v0.0.10, database kept Non-pillar, 46 momentums down the v0.0.8 branch. Stayed on the v0.0.8 chain for the full five minutes. Pillar, about 96 down the v0.0.8 branch. Stayed on the v0.0.8 chain and produced 5 momentums on it.
Resync from an empty database on v0.0.10 On the upgraded chain within 20 s. It was served the v0.0.8 branch first, rejected it and quarantined those peers. On the upgraded chain within about 20 s, the same way.

Two details matter for operators:

  • An upgraded node can still be refused. The in-place upgraded node kept its node id, and upgraded nodes it had served the v0.0.8 branch to earlier still refused it. They can keep doing so for up to an hour.
  • The resync worked even with the old network key kept.

What this means for operators

  1. Upgrade before any spork call is made from the community spork address. This matters more than the first post suggested. If v0.0.8 wins the first momentum, the two chains stayed apart in our tests even after the upgraded chain became taller.
  2. If your node followed the v0.0.8 branch, resync it from an empty database on v0.0.10. Upgrading the binary and keeping the database left the node on the v0.0.8 chain in both runs. For a pillar it is worse: it keeps producing on the wrong chain.
  3. To check which chain a node is on, compare hashes, not heights. Look at the momentum just after the fork point and compare its hash with a known upgraded node. Both chains grow at similar rates, so a matching height tells you nothing.

A caveat about our network

In our 20-node network every v0.0.8 node served the invalid branch to every upgraded node at first contact, so the two sides cut each other off completely within a minute. On mainnet, a v0.0.8 node is quarantined only by the upgraded nodes it actually talked to. More v0.0.8 nodes will keep a connection to an upgraded node, and the case-A pattern will be more common:

  • Within 30 momentums of the fork, the v0.0.8 node rolls back to the fork point and fails.
  • Beyond 30, the v0.0.8 node logs “Too far”.

We cannot say from this network how common. Either way, it does not change the advice above.

Corrections to the first post

  • Case B, last bullet. We wrote that v0.0.8 nodes would be pulled back as in case A once the upgraded chain became taller, as long as they were no more than 30 momentums past the fork. In our tests they were not. The quarantine that protects v0.0.10 nodes also keeps v0.0.8 nodes from seeing the upgraded chain. The only v0.0.8 node that did reach it was taken straight back onto the v0.0.8 chain by its v0.0.8 peers.
  • Checklist item 3. We wrote that a v0.0.8 node would sync onto the upgraded chain after an upgrade.
    • For a node that ran on along the v0.0.8 branch, this was false: resync instead.
    • For a node that halted at the fork point (case A), it is still untested.
  • Checklist item 4 (resync a node that ran more than 30 momentums on its own branch) is confirmed.

What we have still not tested

  • An in-place upgrade of a node that halted at the fork point (case A).
  • An in-place upgrade of a node less than 30 momentums down the v0.0.8 branch.
  • What happens when the one-hour quarantines expire. From the code we expect nothing to change by then, because the v0.0.8 branch will be far more than 30 momentums past the fork and every reorg attempt will hit “Too far”. We have not observed it.
  • Unequal pillar weight, longer durations and a public testnet, as listed in the first post.

Questions and logs are welcome in this thread.

3 Likes

Thanks for the update

1 Like

If Pillar rotation is deterministic then we can control for a number of factors toward assuring that the spork will be a success.

Here’s a poc, some analysis tools and copy pasta for ai:

1 Like

Thanks for the write-ups, @0x3639. We reproduced the renewal on a local mixed-version network to check the v0.0.10 behaviour independently. In every run the v0.0.10 branch kept the spork, kept producing and never took a v0.0.8 momentum. Our results match posts #1 and #2, and add one tested data point on v0.0.9.

Setup

  • Builds. v0.0.8 from v0.0.8-alphanet (bba4060), v0.0.9 from v0.0.9-alphanet (bb39e31), v0.0.10 from the release candidate (c3e0e88).
  • Test deviations. The same as yours: the renewal window starts at height 60, the community spork address is a test key we control, and the version string carries a -rehearsal suffix. v0.0.8 keeps its original window, which has closed by height 60.
  • Networks. 9 nodes (2 pillars and 2 non-pillar nodes per side, plus one v0.0.9 node) and 21 nodes (6 pillars and 4 non-pillar nodes per side, plus one v0.0.9 node). All pillars have equal weight, and every node seeds from every other node.
  • Procedure. One CreateSpork from the test key inside the window per run. As in #2, we forced a case by pausing one side’s pillars across the spork receive, and forced the overtake by pausing the v0.0.8 pillars until v0.0.10 was taller.
  • Checks. Hashes, not heights, as #2 recommends. Every node’s frontier was sampled every 3 seconds, and every node’s chain was dumped from the fork point at the end. Each run starts from a fresh genesis and keeps all node logs.

Results

Network Case Fork point Receive on v0.0.10 Final height v0.0.10 / v0.0.8 v0.0.10 on the v0.0.8 branch v0.0.9 node
9 nodes A: v0.0.10 produces first 63 64 97 / 63 never followed v0.0.10
9 nodes B: v0.0.8 produces first, 5 ahead, then overtake 63 65 108 / 110 never crashed
9 nodes B: v0.0.8 produces first, 35 ahead, then overtake 63 65 153 / 148 never crashed
9 nodes No pausing (became case A) 64 65 97 / 65 never followed v0.0.10
21 nodes A: v0.0.10 produces first 63 64 97 / 63 to 64 never followed v0.0.10
21 nodes B: v0.0.8 produces first, 5 ahead, then overtake 63 65 115 / 107 never followed v0.0.10

The spork send was confirmed at 63 in every run. Every v0.0.10 node listed the spork at the end. No v0.0.8 node did.

What matched your posts

  • Case A. v0.0.8 rejected the receive momentum with auto-received block has different changes-hash ... Block import failed, rolled back to the fork point each time a v0.0.8 pillar produced in its slot, and stayed at the fork point. v0.0.10 needed no quarantine because no v0.0.8 branch was ever taller.
  • Case B. v0.0.10 rejected the v0.0.8 branch, quarantined each v0.0.8 peer for one hour within seconds of the first v0.0.8 momentum past the fork, and then refused their reconnections (900 to 5,500 refusing quarantined peer lines per run). It built its own branch on the fork point. #1 allows for one rollback when an upgraded node first meets a taller v0.0.8 branch; we saw none past the fork point in any run.
  • Overtake. As #2 found, v0.0.8 nodes did not follow the taller v0.0.10 chain, and with equal weight the two chains took turns being taller. On 9 nodes no v0.0.8 node logged Too far, including in the 35-ahead run. On 21 nodes the v0.0.8 nodes logged it 260 times. Those syncs came from the v0.0.9 node, which follows v0.0.10 but has no quarantine, and from one v0.0.10 node that had quarantined only 5 of the 10 v0.0.8 peers. Quarantine is per pair: a node quarantines only the peers that served it the v0.0.8 branch, so a few links stay open, as #2 describes.
  • Receive lag. The receive landed 1 or 2 momentums after the send, inside your 1 to 11 range.
  • No v0.0.10 crashes or panics in any run.

v0.0.9 crash, now observed

#1 inferred from code that v0.0.9 follows the upgraded chain but crashes after rolling back the momentum that created the spork. We saw exactly that in both 9-node case B runs, and never in case A:

  1. The v0.0.9 node rejected the v0.0.8 receive momentum, then followed the v0.0.10 branch, which created the spork at 65.
  2. When the taller v0.0.8 branch arrived, it rolled back to the fork point at 63 and undid the spork.
  3. The v0.0.8 branch failed to import.
  4. On the next insert it panicked in definition.GetAllSporks (parseSporkInfo, “unmarshalling empty output”), called from chain.GotAllActiveSporksImplemented, and exited with code 2.

In the 21-node case B run the v0.0.9 node also rolled back to 63, but before the momentum that created the spork, and it did not crash. The crash needs the rollback to undo the spork. v0.0.10 survives the same sequence. We did not test whether a crashed v0.0.9 node restarts without a resync.

A note for anyone reproducing this

If every pillar starts at once from genesis, several produce their own height-2 momentum before they peer. v0.0.10 resolves this with a rollback. A v0.0.8 pillar stayed on its own height-2 momentum, logging sync is not done, for the three minutes we watched. We start the bootstrap pillar and the non-pillar nodes first, and the other pillars once the chain passes height 3.

2 Likes

Thanks for running these tests.

I was able to sync the latest version of v0.0.10 from scratch without any issues. I will be deploying an updated nomctl to help people create backups and upgrade to the latest version soon.