fork-differences.md raw

how limenka differs from bitcoin

Limenka shares genesis and all history up to the fork point. From activation it is a different consensus with its own P2P magic. This document lists what changes, why, and what it costs. It is deliberately narrower than fork-spec.md: that document specifies the consensus rules, this one is the migration note for operators, wallet authors and anyone deciding how to sync.

1. activation

Activation is by median time past, not by height:

MTP(101 block window) + 30000s bias >= 1792328400

which is 2026-10-18 13:00 UTC. The height field exists in the params for a future hard-coded optimisation but is zero on mainnet, so activation cannot be gamed by mining a particular block.

Consequence: the fork starts at a wall-clock moment inside a block's timestamp window, not at a block number. A node that is offline across the boundary validates the same chain it would have validated online.

2. block production

One interval. The target is 617 seconds and there are no tiers, no interval byte and no per-interval difficulty.

The floor is a sequential delay, about 60 seconds of non-parallelisable work. The specified construction is repeated squaring in a class group of unknown order with a Wesolowski proof, so verification is milliseconds and independent of the delay length. The current tree still implements a 2^33 step long-division chain verified by recomputation, about 52 seconds per block, which is the interim and not the specification.

Consequences:

the delay a second time.

the coinbase and therefore the merkle root, so no nonce can be tried until the delay is finished, and roughly ten percent of the interval is idle hashpower at the target spacing.

coinbase, so the template is built and refreshed during the delay and grinding starts the moment the proof lands. The delay commits to position, not to contents.

pointed at another SHA256d chain for the delay and switched back.

replacement block needs a fresh sequential chain.

Timestamps are strictly increasing from the second fork block, at least one second apart. The first fork block is exempt because its predecessor is a parent block whose stamp may be up to two hours ahead. The future bound is 60 seconds against the node's own clock. There is no separate past bound: the previous block is the lower bound.

3. money

Reward is proportional to a smoothed interval, not the block's own stamp:

es = es + a * (delta - e_s) a = alphafast if delta < es else alpha_slow R(es) = S(aggregateseconds) * e_s / 600

An exponential estimate with asymmetric gain: fast to fall when blocks speed up, slow to rise when they slow down. The asymmetry mirrors the difficulty controller and closes the harvest a hashrate spike would take, because a symmetric window pays the attacker the pre-attack rate for a full window while it produces at double speed.

Halvings are counted in aggregate seconds, one epoch per 126,000,000 seconds, so about four years of wall-clock time rather than 210,000 blocks. Aggregate seconds are chain state, seeded at activation from the parent chain and advanced by real elapsed time.

Payload reads the same figure:

payloadsize = MAXFORKBLOCKSIZE * e_s / 600

The constant is 1,000,000 bytes. There is no weight class and no witness discount, so a byte is a byte: the theoretical 1MB is what the code enforces, not a 4MB weight ceiling that resembles 1MB because of a multiplier. At the target that is 144 MB a day and about 52 GB a year, and the rate is fixed by the protocol rather than by how many blocks happen to fit.

Neither is capped. A sustained slow period earns proportionally more per block and carries proportionally more space; a fast one pays less.

The property this buys: the emission rate is fixed at S/600 per second. Hashrate can take a larger share of the stream but cannot make the stream run faster. On a block-counted chain a majority miner earns more subsidy per hour by producing more blocks; here it earns more only by taking share from someone else.

The total remains 21 million coins. Fees are not time-scaled and remain per block. The asymmetric estimator is biased slightly low under noise, which means the chain mints a little under the cap and under the schedule rather than over. That is the safe direction for a supply commitment, and the rectification factor should be measured rather than assumed.

One consequence worth knowing: hashrate falling is the benign direction. Blocks slow, the window rises, each block pays more and carries more, revenue per unit of hashrate rises, and hashrate is pulled back. Hashrate rising does the reverse, and the delay floor caps how fast blocks can arrive. Total emission and total capacity per second are invariant, so this is a negative feedback loop with a stable point rather than a race. The cost is a few blocks of lag on the way up, around twenty on the way down, and the loss of burst clearing. Emission and capacity per second are invariant in steady state, not during the transition: a spike pays at the old rate for a few blocks, which is the leak the fast falling gain exists to shrink.

4. difficulty

A PI controller with no derivative term:

error = 617 - e avg = EMA(error, alpha = 0.05) ki = 5e6 if error > 0 else 50e6 correction = (ki avg + 10e6 error) / 1e6 denominator = clamp(1e6 + correction, 1e5, 1e7) nexttarget = previoustarget * 1e6 / denominator

The setpoint is 617 seconds rather than 600 because the asymmetric integral has a rectification bias; 617 was calibrated so the steady-state mean lands near 600 seconds under symmetric jitter. That calibration should be re-measured whenever the hashpower distribution changes materially.

Raising difficulty is slow (ki_up small, flood resistant). Lowering it is fast (ki_down ten times larger, quick recovery when hashrate leaves).

5. scripts and privacy

bad-taproot-output, in both mempool and block validation. The fork keeps taproot's sighash rules but not its output type.

spent with a 64 byte BIP-340 signature and the x-only key, using BIP-341 sighash. It is the Schnorr equivalent of P2WPKH without MAST or tapscript.

Pedersen commitments. A block may mix explicit and confidential transactions freely; there is no tier-placement rule.

and the two networks share one mempool.

5.1 why taproot is banned

the output of a P2TR is a tweaked public key in the clear, and it sits in the UTXO set from the moment it is created until it is spent. that is a naked pre-spend pubkey with a lifetime measured in months or years. a P2WPKH output is a hash, so the key appears only in the spending witness and the exposure window is one block. the ban exists to keep every output key committed rather than key exposed, because a quantum adversary harvests public keys first and attacks them later.

that rationale is independent of witness stuffing, and it survives it. the witness vector is not closed by the ban anyway: a P2WSH spend can carry a large stack element dropped by a single OP_DROP, and the 10,000 byte script limit bounds the number of elements, not their size. taproot only removed the friction.

so there are two separate decisions, not one:

  1. keep the ban, and reach Schnorr through P2SPKH, where the key is hash

committed and the exposure is the spend only. that preserves MuSig, PTLCs and adaptor signatures without putting keys on the chain.

  1. close the witness vector on its own terms: witness bytes at parity

with base bytes, plus a consensus cap on witness weight per transaction. reducing the opcode set does not do it, because one OP_DROP is enough.

6. sync: assumeutxo, the bridge, and IBD

This is the part that changes the most for an operator.

6.1 the intended design

The fork ships a UTXO snapshot taken at the fork point and committed in the fork params, so a new node can:

  1. load the snapshot,
  2. validate only the post-fork chain from that state,
  3. optionally background-validate the pre-fork chain later, exactly as

assumeutxo already does today.

That eliminates the requirement to IBD the parent chain before being useful on the fork. It does not eliminate IBD: a node can still sync from genesis, and a node that loads the snapshot can still validate the whole history in the background.

What that means for a phone: the blocks are the part that grows, and at 144 MB a day an unpruned node keeps a year in about 52 GB, so for the first years pruning is optional rather than necessary. The floor is the chainstate, around 12 GB for the inherited UTXO set, which is why pruning alone does not make a phone node trivial. A UTXO commitment is the real unlock. Until then the honest claim is that a phone can hold the chain, not that it can hold the state cheaply.

6.2 what is implemented today

The fork chain has its own P2P magic and, at present, no seeds and no assumeutxo data of its own. A fresh fork node therefore cannot obtain pre-fork blocks from ordinary fork peers. The mempoolbridge serves pre-fork blocks from configured parent peers (commit e08ab607e8), so IBD is possible but requires that bridge to be configured.

The status is therefore:

available, but it only saves parent-chain history, not the post-snapshot parent blocks up to the fork.

6.3 what a wallet should do

A wallet that trusts a checkpoint can operate from the snapshot height immediately. A wallet that does not should say so, and should distinguish between "validated from the fork point" and "validated from genesis". Those are different security assumptions and the UI should not collapse them into one word.

7. what does not change

to the opcode set needed for timelocks and Lightning/Ark, so it is not unchanged, only smaller

8. open items

  1. Commit the fork-point snapshot (hash and nChainTx) in the fork params,

or ship it as a signed file with a documented verification procedure.

  1. Pick T for the class group construction against a stated reference

machine and record both, because the step count is fixed and the wall clock is not.

  1. Re-measure the 617 second setpoint after the fork has real hashrate.
  2. Decide whether the fork ever ships seeds of its own, and if so under

what identity.

  1. Decide the per transaction witness cap, and whether to price witness

bytes at parity. That is the witness stuffing fix, and it is independent of the taproot ban, which does not close the vector.

  1. Revisit the script set once Lightning and Ark are implemented, because

the opcodes they need are the only justification for the reduction and the list is currently an assumption.