Repository navigation
v1.1.7 — replaces v1.1.6, upgrade before block 115,000
v1.1.7 replaces v1.1.6. Both activate at block 115,000 — if you upgraded to v1.1.6 today, upgrade again.
v1.1.6 is correct and its Kaspa fix is included here unchanged. This release adds a second consensus change at the same height, so that operators upgrade once rather than twice. A node left on v1.1.6 will fork off at 115,000.
BLOCK has been emitting about 32x too fast
The target is 600 seconds. The chain has been producing a block every ~19 seconds — flat for 20,000 blocks, not drifting, not converging. At that rate the first halving arrives in about 53 days instead of about 690.
It is not the energy coefficients. That is what it looks like, and it is what was tried first: dividing the native lane's coefficient across ten orders of magnitude moves the simulated spacing from 122 s to 110 s, which is nothing, and dividing every lane's by its measured over-production leaves spacing unchanged while making native's share worse.
It is two separate defects.
One eased block set the difficulty of the entire chain to zero
A lane that has been quiet gets its next block eased by the quiet-lane decay. That is the decay doing its job. But that block then enters the shared coupled window, and normalising a target for a low-coefficient lane multiplies it — sha256d by about 185 — so an already-eased target saturates at pow_limit.
avg_base was a plain arithmetic mean:
| poisoned entries | resulting shared base |
|---|---|
| 1 of 17 | 126,324,519x easier |
| 8 of 17 | 1,010,596,145x easier |
Every lane then denormalised to pow_limit and the whole chain mined free until the window rolled over. sha256d alone — 0.9% of blocks, ~33 minute gaps — re-poisoned it roughly every hundred blocks, which is why the spacing never converged no matter what the difficulty algorithm computed.
From 115,000 the shared base is the median of the window. A median cannot be moved by a minority: it holds equilibrium exactly up to 8 of 17 and only follows the outliers once they are the majority — at which point the window really is mostly quiet lanes and easing is the right answer.
The decay grace has been shorter than a healthy lane's own interval
With ten lanes, a lane producing exactly on schedule is quiet for 600 x 10 = 6,000 seconds by construction. The v1 decay grace was twice that, 12,000 s. The v2 schedule, live since height 360, cut it to one whole-chain spacing: 600 s.
So since block 360, every lane on the network has been permanently decaying. A lane running exactly on time was eased by more than a millionfold.
From 115,000 the grace returns to 2x the per-lane spacing, keeping v2's faster halflife.
What each fix is worth
Measured by replaying the real difficulty functions against per-lane hashrate inferred from the chain's own blocks. The simulator's first run is a control: with the parameters currently in consensus it reproduces the chain that exists (16.9 s simulated against 18.1 s observed) before being trusted on anything else.
| spacing | ||
|---|---|---|
| today | 16.9 s | 35.5x too fast |
| + median base | 123.0 s | 4.9x |
| + grace restored | 480.2 s | 1.2x |
The remaining 20% is inside the error of a hashrate estimate inferred from history, and the LWMA closes it once the base can move at all — which, for the first time, it can.
The simulator ships as emissionsim so the next person can check this rather than take it on trust.
What does not change
Addresses, keys, balances, the 50 BLOCK subsidy, the 210,000-block halving interval, transaction rules. This changes how difficulty is set, not what a block is worth.
Blocks below 115,000 validate exactly as before — both rules are height-gated and the pre-fork functions are kept rather than replaced.
Upgrading
Replace the binary before block 115,000. No reindex, no resync, no datadir change.