Protocol specification · Source at 93ba635c

Resource soundness and parameter selection

Decision packet P05. Candidate cost algebra and parabolic fee-burn curves specified for D08 (unified Cost Units cu, parabolic transaction cost $C_{\text{tx}}$, rolling integer ema_block_cost $E_n$, and parabolic block burn floor, eliminating hard step-function walls MAX_TX_BYTES and MAX_BLOCK_BYTES); the cu unit, primitive weights and shift constants ($S_{\text{tx\_knee}}, w, E_{\min}, S_{\text{linear}}, S_{\text{quad}}$) are approved (approved cost schedule); the burn floor and the byte fee are indexed by the square root of the subsidy per unit of work (subsidy index); the state-key price is a placeholder until it is measured, and the weights still need a ratio cross-check on a second machine before genesis freeze. A resource rule is consensus, even when its motivation is protection of a daemon. No post-genesis vote or hardware benchmark may change it implicitly.

Monetary index convention: issuance step n >= 0 means block height n + 1; genesis commits the initial state without advancing any recurrence. See P02's genesis/indexing rule.

Static cost algebra

Apply P03's bounded instruction-boundary success scan first. An invocation containing an unassigned OP_SUCCESS_N pays a structural charge covering its complete script bytes and scan, plus all outer witness/proof/transaction charges; its suffix need not form an AST and no ordinary VM instructions run. The algebra and size pass below apply only when the scan finds no unassigned success opcode. Future assignments preserve the frozen accounting view and add execution restrictions as specified below.

Assign every primitive a positive integer upper-bound charge in Cost Units (cu) (1 cu is one reference hash and each wire byte is charged 2 cu; see the approved cost schedule) covering its operands and memory behavior. A charge that grows with operand size is a nondecreasing function of a per-operand size bound; the bound comes from the size pass below, and is MAX_ELEMENT_BYTES wherever that pass has no better answer. Let cost(node) be:

ordinary instruction: scheduled upper bound
sequence: sum(cost(child))
conditional: condition/control charge + max(cost(then),cost(else))
loop(bound,body): setup + bound*(iteration_control + cost(body))

The static bound of a loop is read from the instruction immediately before its ENUMERATE in the same sequence. After TXINPUTCOUNT it is the transaction's input count I, and after TXOUTPUTCOUNT its output count O; both are fixed before execution and at most 256 (C06). After a numeric literal in 0..256 it is that literal. Any other bound, including a loop that opens a sequence, is charged at 256. Each of these is at least the runtime bound, so the charge stays an upper bound. Charge BREAK and COND_BREAK as instructions but ignore their early termination when calculating the bound. The bound includes unexecuted arms and the complete loop syntax. No path-by-path symbolic execution is needed: the size pass below is a single traversal that merges paths. Use checked unsigned 128-bit arithmetic for every primitive charge and composed subexpression. Overflow of any such intermediate rejects before execution, including inside a zero-bound loop body. Compare MAX_INVOCATION_COST only against the complete invocation charge, structural bytes plus cost(script), after applying the loop bound and conditional max; a provisional body charge above that cap does not independently reject a zero-bound loop. The schedule must make all intermediate charge calculations well-defined before a narrowing conversion.

With nonnegative charges, structural induction proves monotonicity in bounds: sums, max, and multiplication by nonnegative bounds are monotone. An ordinary instruction's charged work is bounded by its schedule. A selected conditional arm is bounded by max; a loop executes no more than its captured bound and BREAK only removes work. Induction therefore establishes actual abstract charge <= static charge, conditional on correct primitive upper bounds and control semantics. It does not prove a nanosecond bound or a hardware-independent memory-latency bound.

Decode/charge syntax once per invocation, not once per expanded iteration. Nested I×O loops remain legal; I identical invocations still charge I²O inner work. No optimization discounts. Runtime memory/stack/range checks remain necessary even when static cost fits.

Extension-safe accounting and enforcement

Freeze two views at genesis. C_account is the monetary accounting cost: evaluate the genesis opcode allocation, instruction-boundary success scan and cost schedule forever, even after assigning a success byte. An invocation that encounters a genesis-success byte keeps its genesis structural accounting charge for its complete script and outer work. This immutable view defines L, C_tx, C_block and the EMA committed in MonetaryState.

C_enforce is the current validation charge. Initially it equals C_account. After an extension activates, statically charge its actual execution under the activated rules, at least the genesis accounting charge for that invocation; retain all outer charges and apply the same parabolic aggregation. Enforce invocation limits and the block burn floor using C_enforce >= C_account, but update the EMA only from C_account. Thus in the deduction formula use R = RequiredBlockBurnFloor(C_enforce, E_n); genesis-rule nodes compute the weaker floor using C_account and accept the same coinbase underclaim and state root. New checks may reject more blocks; they must not change state transitions for blocks they accept. Each later activation must preserve all previous restrictions and must not lower the prior enforcement charge for an accepted invocation; comparison only to the genesis baseline is insufficient across multiple upgrades.

The genesis scan used for accounting is distinct from the activated execution scan: newly assigned instructions may execute, but remain success bytes in the immutable accounting view. Prefix/suffix execution costs, proof/wire work, the fixed size-pass algorithm and block-overhead costs must be covered. Future assignments cannot reinterpret transaction bytes, monetary recurrence inputs or output/state effects. Differential upgrade vectors must compare whole-block acceptance and exact post-state roots, not only script success. Increased enforcement cost is a restriction, never a new monetary-state value.

Size-bounded charging

MAX_ELEMENT_BYTES has a working value of 8192, chosen so that a post-quantum signature or key (for example SLH-DSA at about 7.9 KB) fits in one stack item. A large limit must not raise the price of scripts that only handle small items, so size-dependent charges use a bound computed per operand, before execution, by one traversal of the decoded script.

The pass never rejects a script and adds no validity rule. It only chooses charges. Where it cannot follow the stack it falls back to the maximum, which is the rule this packet had before.

State. Either Known(main, alt), two lists holding one byte-size bound per stack item, or Unknown. In Unknown every operand is charged at MAX_ELEMENT_BYTES (plus the worst-case quadratic limb surcharge (max_limbs^2 - 1) * 16 with max_limbs = ceil(min(MAX_ELEMENT_BYTES, 1024) / 16) on MUL, DIV, MOD, MUL128_WIDE, LOG and SQRT when max_limbs > 1). The initial state is Known: the witness arguments at their actual lengths in wire order, then N-sized (16) for the mint delta in a mint invocation; alt is empty.

Transfer rules. An instruction that needs more items than a Known state holds moves the pass to Unknown (it would error if executed, but it may sit in an arm that never runs).

Instruction Bound of each result
PUSH_n, PUSHDATA exact data length
constants, comparisons, NOT, 0NOTEQUAL, BOOLAND, BOOLOR, WITHIN, LOG, OUTPUTCONTINUESBRANCH and every other Boolean result, DEPTH, SIZE, counts, indices, values 16
BIN2NUM, 1ADD, 1SUB, NEGATE, ABS, SQRT, MULPOW2 clamp(bound(a), 16, 1024) (with quadratic limb surcharge (limbs^2 - 1) * 16 operand bytes on LOG and SQRT when limbs = ceil(min(bound(a), 1024) / 16) > 1)
ADD, SUB, DIV, MOD, MIN, MAX max(clamp(bound(a), 16, 1024), clamp(bound(b), 16, 1024)) (with quadratic limb surcharge (limbs_a * limbs_b - 1) * 16 operand bytes on DIV and MOD when limbs_a * limbs_b > 1)
MUL 16 when bound(a) <= 16 and bound(b) <= 16, else min(2048, clamp(bound(a), 16, 1024) + clamp(bound(b), 16, 1024)) (with quadratic limb surcharge (limbs_a * limbs_b - 1) * 16 operand bytes when limbs_a * limbs_b > 1)
ADDCARRY, SUBCARRY low limb clamp(max(bound(a), bound(b)), 16, 1024), carry/borrow 16
MUL128_WIDE both limbs clamp(max(bound(a), bound(b)), 16, 1024) (with quadratic limb surcharge (limbs_a * limbs_b - 1) * 16 operand bytes when limbs_a * limbs_b > 1)
RAWLEFTBITSHIFT the shifted operand's bound
hashes, LEAFHASH, NODEHASH, MERKLEROOT_SORTED, MERKLEROOT_INDEXED, TXID, OUTPOINTTXID, CHAINID, SIGHASH, BRANCHROOT, token IDs, branch roots 32
CAT sum of both operand bounds, capped at MAX_ELEMENT_BYTES
SPLIT each piece takes the source's bound
NUM2BIN the width, if it is a constant in 0..MAX_ELEMENT_BYTES pushed by the immediately preceding instruction; otherwise MAX_ELEMENT_BYTES
INVERT, AND, OR, XOR the larger operand bound
LESSSWAP both results take the larger of the two operand bounds
DUP, OVER, SWAP, ROT, TUCK, NIP, DROP, alt-stack moves and the other fixed stack shuffles bounds move with their items
PICK, ROLL with an in-range index pushed as a constant by the immediately preceding instruction, the exact slot. Otherwise PICK yields the maximum bound on main, and ROLL sets every main slot to that maximum
ACTIVEBYTECODE length of the running script
CHECKLOCKTIMEVERIFY, CHECKSEQUENCEVERIFY no result: both pop N(kind) and N(bound) and push nothing (P03), so the state stays Known
path, complete-output and other transaction or coin reads with a constant index, that field's actual length in this transaction or its resolved coin; otherwise the maximum of that field over all inputs or outputs
NOP no change

Conditional. Pop the condition, analyze both arms from the same state. If both results are Known with equal main and alt heights, the result is the slot-by-slot maximum; otherwise Unknown. A missing ELSE is an empty arm.

Loop. Let S0 be the state at loop entry, plus the 16-byte index the loop pushes for each iteration. Analyze the body once to get S1. Every BREAK or COND_BREAK reached in the body pops its depth operand, and a COND_BREAK then pops its condition; for each enclosing loop that the instruction may exit (only the inner loop if the depth is a constant 1 pushed by the immediately preceding instruction, otherwise every active enclosing loop), if the state at BREAK after popping is Unknown or differs in main or alt height from that loop's entry state before its index, the state after that loop is Unknown; otherwise merge that BREAK state slot-by-slot into S1 and into the exited loop's post-loop state. A COND_BREAK with a false condition falls through, so the analysis of its sequence also continues from the state with both operands popped. If S1 is Known with the same heights as S0 before its index, set to MAX_ELEMENT_BYTES every slot whose bound grew, and analyze the body a second time from that widened state; if any slot still grows, or the heights differ, or either result is Unknown, the body is charged in Unknown and the state after the loop is Unknown. Otherwise the body's charges are those of the second analysis and the state after the loop is the slot-by-slot maximum of S0, the second result and any BREAK states that exit that loop. Each body is analyzed at most twice, so with nesting depth two the pass visits any instruction at most four times.

Soundness obligation. For every execution and every instruction reached, each operand's actual size is at most the bound the pass assigned at that instruction. With charges nondecreasing in the bound, actual abstract charge <= static charge continues to hold. Unknown reproduces the maximum-operand rule, so the pass can only lower a charge where it has a proof. Runtime element, count and total-byte checks are unchanged and still required; the pass is not a memory proof. Vectors must cover unequal conditional arms, computed PICK/ROLL indices, accumulating and non-accumulating loops, BREAK and COND_BREAK at equal and unequal heights, COND_BREAK falling through, and underflow inside an unexecuted arm.

Unified Cost Units (cu) and transaction linear base cost $L(\text{tx})$

All wire bytes, BLAKE3/SHA256 hashing, signature verifications, state-tree updates, and static VM opcode charges are unified into a single integer unit: Cost Units (cu), where 1 cu is one tagged BLAKE3 hash of a two-compression message, each wire byte is charged 2 cu, and every cryptographic, commitment, state, and VM operation has a deterministic static cu charge (approved cost schedule). Each transaction's linear base cost $L(\text{tx})$ (u64) is the checked sum of:

  1. Wire parsing and canonicalization by bytes/counts (2 cu per serialized wire byte) and all script structural scans. For coinbase, the zero-cost absence of witnesses does not exempt its bytes or outputs.
  2. Coin resolution, resolved output bytes and metadata; path/witness matching.
  3. Script/mint commitment hashing and every supplied membership sibling.
  4. InputCoreLeaf(i), InputsRoot, InputFullLeaf(i), FullInputsRoot, OutputLeaf(j), OutputsRoot, CoinLeaf(i), CoinsRoot, TxID, TxHash, and OwnInputHash(i) construction and hashing, charged linearly in $O(\text{tx bytes} + \text{resolved coin bytes})$ even if lazily cached. Both TxID and TxHash top-level digests hash a fixed 112-byte preimage, and every CHECKSIG or SIGHASH execution in any mode (00, 01, 02) hashes a fixed-size preimage of 138, 150 or 178 bytes ($\le 4$ BLAKE3 64-byte compression blocks including the domain prefix) in $O(1)$ time, preventing quadratic sighash hashing.
  5. Every spend and mint invocation, including signatures, data hashing, byte copies, introspection serialization and Merkle-root opcodes (MERKLEROOT_SORTED and MERKLEROOT_INDEXED, charged using the proof bound and selector prices below).
  6. Native/token aggregation and mint lookup, with a deterministic bounded algorithm/model.
  7. State updates and root calculation: each consumed/created key's leaf/value hashing and interior-node updates in P02's prefix-compressed tree (about $\log_2 n + 1.3$ hashes per key on average, ~28 at $10^8$ coins, independent of the 224-bit prefix a transaction's outputs share; at most 257 on any path, since clustered output indices and ground transaction IDs add splits, so the conservative per-key cu charge is calibrated on the worst permitted shapes, not the average).

Input resolution never loads parent transactions into memory, and outputs carry no inline scripts or state blobs. With the hard consensus caps MAX_OUTPUT_BRANCHES = 16 and MAX_OUTPUT_PATHS = 16 (P01), every serialized Output is at most 812 bytes (844 with HAS_STATE; 45B native / 77B token for single-branch outputs) and every UTXO Coin record is at most 885 bytes (917 with HAS_STATE), including the 17-byte version and lifespan suffix every Coin carries (P02); Bytes(Coin) as a leaf hashes it adds a 3-byte CS length. Spending a transaction's maximum 256 inputs (C06) therefore needs at most 234,752 bytes (about 229 KiB) of Coin memory, eliminating Bitcoin's PrevTx and oversized-UTXO out-of-memory vectors by construction. Furthermore, each path is a subset of 0..15 stored in RAM as a single uint16_t bitmask (uint16_t paths[16], 32 bytes per coin), making UTXOREQUIRESBRANCH, OUTPUTREQUIRESBRANCH, OUTPUTEXCLUSIVEBRANCH and OUTPUTCONTINUESBRANCH $O(1)$ bitmask operations.

The sorted/hashed algorithm chosen for asset accumulation must have a bounded worst-case schedule; expected O(1) hash-table lookup is not a worst-case consensus argument. Model at most I+O asset records with a deterministic sort or another explicitly bounded procedure. Storage I/O and peer submission limits remain operational obligations; consensus does not require the entire UTXO set in RAM.

Approved cost schedule

The unit. One cu is one reference hash, $H_{\text{ref}}$: one tagged BLAKE3 hash (BLAKE3(tag || 00 || x), C08) of a message that takes two compressions. That is the shape of every UtxoRoot node hash (P02's 99-byte node preimage) and of the 67-byte tagged preimages charged below. The unit names an operation, not a machine. Every measured weight is

weight(op) = ceil(1.5 * max over measured machines of t(op) / t(H_ref))

A machine that is uniformly faster or slower changes no weight. Measuring another machine can only raise the weight of an operation whose ratio to $H_{\text{ref}}$ is worse on it. The margin 1.5 covers the ratio variance between machines and measurement noise. A wire byte is not measured: it is charged at a fixed design ratio of 2 cu. How many atoms a cu costs comes from the burn floor below, not from this schedule.

Item Charge (cu)
Wire byte 2 per serialized byte, everywhere bytes are charged: every transaction byte, including the coinbase, and the header, transaction-count and frame-prefix bytes in C_envelope
Resolved coin byte 1
Hash h(n) of an n-byte message 1 per 64-byte BLAKE3 block, with 64 bytes reserved for the tag: h(n) = ceil((n + 64) / 64)
BIP340 Schnorr and ECDSA secp256k1 verification (CHECKSIG, CHECKSIGVERIFY, CHECKDATASIG profiles 0 and 3) 210, which also covers CHECKSIG's fixed signing preimage
ECDSA P-256 verification (CHECKDATASIG profile 1) 620
Ed25519 verification (CHECKDATASIG profile 2) 49,400, the strict verifier as built
Invocation setup 6 per spend or mint invocation, plus the structural charge of 1 per script byte
Storage read 64 per resolved coin and per state key
State key 151 per created or consumed key of a coin up to 158 bytes: 87 for its hashes (27 levels of h(67) plus h(36) and the leaf hash h(33 + CS(n) + n), which grows with the coin's length n, to 163 in all for the largest coin) and one 64 cu read. This is a placeholder: the price must be measured on the node's prefix-compressed tree (see the open note under calibration)
VM opcodes The per-operand-byte table in the resource calibration; unmeasured opcodes keep its conservative defaults
C_envelope for N block transactions with F frame-prefix bytes 286 + 2F + 7N
$S_{\text{tx\_knee}}$ 18
$w$ 10
$E_0 = E_{\min}$ $2^{34}$ (17,179,869,184 cu)
$S_{\text{linear}}$, $S_{\text{quad}}$ 32, 32

For an opcode with per-KiB coefficients, sum the weighted operand and result byte bounds, take one ceiling after division by 1,024, then add the base charge. For CHECKDATASIG, a selector literal from 0 through 3 pushed by the immediately preceding instruction in the same sequence selects the corresponding cost in the table. Charge 49,400 cu when the selector cannot be established this way. A proven selector still applies when the operand sizes require their fallback.

Each MERKLEROOT_SORTED or MERKLEROOT_INDEXED costs 3 cu plus 2 cu per proof step for selectors 0 through 2, or 4 cu per step for selector 3 or an unproven selector. Bound the maximum number of steps by the proof byte bound divided by 32 and rounded down, capped at 64 sorted steps or 256 indexed steps. Use MAX_ELEMENT_BYTES as the proof byte bound when its size is unknown.

With these values the standard 1-in/2-out payment, spending and paying the type-1 keyhash address (addresses: DUP BLAKE3 PUSH32(keyhash) EQUALVERIFY CHECKSIG, arguments signature and x-only key, 256 cu of invocation), is 287 bytes with $L = 1{,}529$ cu and $C_{\text{tx}} = 1{,}537$ (counting the full 116-byte Coin it spends), and a coinbase-only block costs about 1,438 cu. A bare-key script (PUSH32(key) CHECKSIG, not an address type) gives 251 bytes, $L = 1{,}447$ and $C_{\text{tx}} = 1{,}454$. On a quiet chain the linear term prices a cu at $E_{\min} \gg S_{\text{linear}} = 4$ atoms.

Before freeze: measure the state-key update and the cold storage read on the node's tree as ratios to $H_{\text{ref}}$, and repeat the ratio measurements on a second machine of any architecture.

Minimum byte fees and coinbase reward deduction

MIN_FEE_PER_KB = 1000 native atoms per 1,000 bytes (decimal kB). Here a “sat” means one native atom, 10^-6 XPI; it does not mean 10^-8 XPI. For b bytes define ByteFee(b) = ceil(MIN_FEE_PER_KB*b/1000) = b atoms using checked integer arithmetic. This is a consensus floor, not merely the upstream default relay policy. Relay may require more.

Ordinary transactions pay it indexed. For an ordinary transaction in the block at height h, let a = max(1, h - COINBASE_MATURITY) and let $I_a = S_a W_g / (T_g W_{a-1})$ be block a's subsidy index (below). Then

v      = ByteFee(b)
N      = floor( floor(v² · S_a · W_g / W_(a-1)) / T_g )      exact, u384
IndexedByteFee_h(b) = r + (r² < N ? 1 : 0),   r = isqrt(N)

This is the ceiling integer square root of the integer radicand, approximately $v \sqrt{I_a}$ and exactly v at $I_a = 1$. It can be one atom below $\lceil v \sqrt{I_a} \rceil$, because the radicand is floored first; that rounding is the rule. Reading the index COINBASE_MATURITY blocks back makes it the same on both branches of every reorg shallower than coinbase maturity, so a transaction valid on one branch is not made invalid by the other branch's index. The lag stays even though payments priced by cu clear the byte fee many times over: a transaction paying exactly the floor must not become invalid in a reorg, and the lag costs nothing. Every block up to height COINBASE_MATURITY + 1 reads block 1's index, whose parent is genesis ($W_0 = W_g$). Open: COINBASE_MATURITY has no V2 value yet (the manifest's Time/chain row); the lag is that constant.

Every ordinary transaction requires F_tx >= IndexedByteFee_h(len(Tx)), counting its complete serialized bytes, including scripts and witness arguments. C14a's token-output burn remains a separate lower bound on the same fee, so both must hold; this does not add the two minima together. The parabolic block requirement below is additional and can require more burn than the byte floor.

Coinbase has no fee-paying inputs. Its byte charge is deducted from the reward. Define overhead_bytes = 134 + 4 + sum(len(CS(len(Tx)))) for the header, transaction count and all transaction-frame prefixes. Set K = ByteFee(len(coinbase) + overhead_bytes), never indexed (liveness, below). No bytes are exempt and ordinary transaction payload bytes are not counted twice. Coinbase hashing, output validation and state insertion are included in L(coinbase); only nonexistent script execution, coin resolution and signing work are omitted. C_envelope charges envelope bytes, block transaction-tree hashing and other block-only work under the frozen schedule; per-transaction work is not charged twice.

Let R = RequiredBlockBurnFloor(C_block, E_n) be the parabolic expression below. With G = F - T_tok, expiry bounty Bounty from C16, BurnedFees = ceil(G/2) - Bounty, and actual coinbase output sum C, require:

U_required = max(K, max(0, R - BurnedFees))
C <= S + floor(G/2) + Bounty - U_required
U = S + floor(G/2) + Bounty - C

If the available entitlement is less than U_required, the block is invalid; subtraction never wraps. Equivalently require U >= K and BurnedFees + U >= R. The unclaimed amount is burned, including when paid from subsidy in a coinbase-only block. Explicit burn outputs do not count as this underclaim. Coinbase payout distribution, including Avalanche-selected payouts, occurs after the required deduction. Genesis is a fixed manifest block with zero native issuance and is exempt from recurring fee/EMA rules; P02 defines that initialization boundary.

Parabolic transaction and block cost curves (replacing MAX_TX_BYTES and MAX_BLOCK_BYTES)

Arbitrary hard step-function byte walls (MAX_TX_BYTES and MAX_BLOCK_BYTES) are removed from consensus. Structural framing bounds (C06's 256 inputs and 256 outputs, MAX_OUTPUT_BRANCHES = 16, MAX_OUTPUT_PATHS = 16, MAX_ELEMENT_BYTES = 8192, MAX_SCRIPT_BYTES, MAX_ARGUMENTS, MAX_STACK_ITEMS, etc.) remain enforced before allocation so parsers never allocate unbounded buffers, while aggregate transaction and block capacity are governed by smooth parabolic integer cost curves enforced through C16's mandatory 50% native fee burn.

1. Parabolic transaction effective cost $C_{\text{tx}}$

Given a transaction's linear base cost $L = L(\text{tx})$ (u64 Cost Units), its parabolic effective cost $C_{\text{tx}}$ (u64, computed with checked u128 intermediates) is:

$$C_{\text{tx}} = L(\text{tx}) + \big((L(\text{tx}) \cdot L(\text{tx})) \gg S_{\text{tx\_knee}}\big)$$

with knee shift $S_{\text{tx\_knee}} = 18$ ($2^{18} = 262{,}144\text{ cu}$):

2. Rolling integer ema_block_cost ($E_n$) and parabolic block burn floor

Let $C_{\text{block}}$ be the sum of $C_{\text{tx}}$ over all transactions, including coinbase, plus deterministic block-envelope work at post-genesis step $n$, accumulated in checked u128 arithmetic:

$$C_{\text{block}} = C_{\text{envelope}} + \sum_{\text{tx} \in \text{block}} C_{\text{tx}}$$

The canonical 56-byte MonetaryState record (P02) maintains a rolling integer exponential moving average $E_n$ (ema_block_cost:u64) of block cost units with smoothing shift $w = 10$ ($2^{10} = 1024\text{ blocks} \approx 34.1\text{ hours}$ at 2-minute blocks), updated after accepting issuance step $n$:

$$E_{n+1} = E_n - (E_n \gg 10) + (C_{\text{block}} \gg 10)$$

A block whose $E_{n+1}$ would exceed $2^{64}-1$ is invalid. The burn-floor terms below are computed exactly. A block with $C_{\text{block}} \ge 2^{64}$ is invalid before any of them is evaluated: then $Q \ge C_{\text{block}}^2 \gg 32 \ge 2^{96}$, while $\text{BurnedFees}_n + U \le S_n + G_n < 2^{64} + 2^{62}(2^{32} - 1) < 2^{95}$ (u64 subsidy, at most $2^{32} - 1$ transactions, each fee at most MAX_MONEY, C16a), so such a block could never pay. For every other block $X < 2^{96}$, the $L_{\text{tx}}$ radicand is below $2^{192} \cdot 2^{64} \cdot W_g < 2^{384}$ for any $W_g < 2^{128}$ (a P06 profile requirement), and $Q$'s second branch is below $2^{192}$.

Let $F_n$ be total native transaction fees of issuance step $n$'s ordinary transactions, $T_{\text{tok},n}$ the mandatory token-output burn (C14a), and $G_n = F_n - T_{\text{tok},n}$ the remaining native fees. Subtract the expiry bounty from the burned half, so $\text{BurnedFees}_n = \lceil G_n / 2 \rceil - \text{Bounty}_n$ as in C16. Consensus requires $\text{BurnedFees}_n + U$ to be at least the Required Block Burn Floor $R_n$:

M      = max(E_n, E_min)
C_own  = C_envelope(N = 1, F = len(CS(len(coinbase)))) + C_tx(coinbase)
C_txs  = C_block − C_own                   includes every other transaction's framing (2F + 7 each)
L_own  = (C_own · M) >> S_linear           not indexed
X      = (C_txs · M) >> S_linear
L_tx   = isqrt( floor( floor(X² · S_n · W_g / W_(n−1)) / T_g ) )      = floor(X · √I_n)
Q      = max( (C_block · C_block) >> S_quad ,  floor( S_n · e² / E_min² ) ),   e = max(0, C_block − E_min)
R_n    = L_own + L_tx + Q

$S_n = B_n + T_n$ is the block's subsidy (C16) and $W_{n-1}$ its parent's per-block work, both already in the parent MonetaryState; $I_n = S_n W_g / (T_g W_{n-1})$ is the block's own subsidy index. After an opcode extension the same split is applied to C_enforce, with C_own evaluated under the enforcement schedule; the EMA still uses the frozen C_account. Write $Q$'s second branch as a division by $E_{\min}^2$, not as a shift.

Why this synergy with C16's 50% fee burn replaces MAX_BLOCK_BYTES:

3. The subsidy index

$$I_n = \frac{S_n \cdot W_g}{T_g \cdot W_{n-1}}$$

is the subsidy a block pays per unit of parent work, relative to the genesis calibration ($T_g$ per $W_g$). It needs no new constant and no new MonetaryState field: $S_n$ and $W_{n-1}$ are already in the parent record. After the bootstrap, $T_n = \text{isqrt}(\lfloor T_g^2 W_{n-1} / W_g \rfloor)$ (P06), so $I_n$ lies within $1/T_n$ below $\sqrt{W_g / W_{n-1}}$. $I_n = 1$ whenever a unit of subsidy buys as much hashing as the genesis calibration assumed; during the bootstrap it is larger (about 398 at genesis work in block 1, so $\sqrt{I} \approx 20$), and it falls as work arrives. Fees miners keep are not counted: there is no fee EMA and no clamp.

Item Indexed
Transactions' linear burn $L_{\text{tx}}$, including the congestion premium by $\sqrt{I_n}$, the block's own index
C14b byte fee of ordinary transactions by $\sqrt{I_a}$, COINBASE_MATURITY blocks back
$L_{\text{own}}$, K, the coinbase-output dust limit no (liveness)
$Q$'s fixed branch $C_{\text{block}}^2 \gg S_{\text{quad}}$ no
$Q$'s second branch by the subsidy $S_n$
$E_{\min}$, $E_n$, the knee, the shifts, the cu schedule no (they measure capacity, not price)
Ordinary-output dust (C14c) Indexing is approved. The formula remains open.
Token burn (C14a), lifespan rent, the cleaning-crew bounty Fixed atoms in the current schedule.

Ordinary-output dust. The minimum must follow the cost to spend a coin. The sweep pricing study models one derivation using the indexed fee for a standard spend. The current output rule stays at its fixed threshold until a derivation is specified and implemented. Coinbase dust stays fixed. Indexing token burn, lifespan rent or the cleaning-crew bounty remains open.

Design goals. With these rules:

Relay and wallet fee policy (not consensus). $R$ is block-level, so a transaction paying only its byte fee is valid but leaves the miner to burn its share of $R$ out of the subsidy by underclaim. Relay policy and wallet fee estimation therefore price each transaction by its cu share, $2 \cdot ((C_{\text{tx}} \cdot \max(E_n, E_{\min})) \gg 32) \cdot \sqrt{I}$ plus its share of $Q$, not by the byte fee. This adds no constant and does not change validity.

The fee a wallet computes, and relay requires, is exactly the following, in exact integers. $C_{\text{tx}}$ is the transaction's parabolic cost under the frozen schedule and the size pass above. The share uses the block's own index ($S_n$ and $W_{n-1}$ of the block the transaction is priced for, as in $L_{\text{tx}}$); only the byte fee reads the index COINBASE_MATURITY blocks back. base is the cost of the block already selected ahead of the transaction, $0$ when none is. Rounding is up on the transaction's side and down on the base:

M        = max(E_n, E_min)
X        = ceil(C_tx · M / 2^S_linear)
N        = floor( floor(X² · S_n · W_g / W_(n−1)) / T_g )
linear   = r + (r² < N ? 1 : 0),   r = isqrt(N)
e(C)     = max(0, C − E_min)
Q_up(C)    = max( ceil(C² / 2^S_quad),  ceil(S_n · e(C)² / E_min²) )
Q_floor(C) = max( floor(C² / 2^S_quad), floor(S_n · e(C)² / E_min²) )
cuShare  = 2 · linear + 2 · (Q_up(base + C_tx) − Q_floor(base))
fee      = max( IndexedByteFee_h(len(Tx)),  T_tok + cuShare )

T_tok = 2 × DUST_LIMIT × n is the C14a token burn of the transaction's n token outputs. It is burned in full, outside C16's 50% split, so the cu share is paid from the rest of the fee: hence the sum $T_{\text{tok}} + \text{cuShare}$, and the factor 2, which makes the burned half of cuShare cover the transaction's share. The shared vectors in tools/lotus-v2-reference/vectors/fee_vectors.json follow this formula.

Residuals. While $\sqrt{I} > 1$, coinbase bytes (unindexed K) are cheaper than transaction bytes, by up to about 20 times at launch; $Q$'s fixed branch still prices the block, and the gap closes once $\sqrt{I} \le 1$. A step in mining efficiency lowers $I$ and so the price in real terms, permanently; nothing in this rule re-anchors it.

Parameter manifest to freeze

Family Required named parameters / constraints
Wire framing MAX_INPUTS = MAX_OUTPUTS = 256 (frozen in C06; equal to the loop bound, carried in u16 count fields), MAX_BLOCK_TXS, MAX_MINTS (MAX_TX_BYTES and MAX_BLOCK_BYTES removed in favor of parabolic $C_{\text{tx}}$ and block burn floor)
Output/authorization MAX_OUTPUT_BRANCHES = 16, MAX_OUTPUT_PATHS = 16 (implied MAX_PATH_BRANCHES = 16, MAX_OUTPUT_BYTES = 844, MAX_NATIVE_COIN_BYTES = 917, both for a HAS_STATE output; 812 and 885 without state. MAX_COIN_BYTES = 10,085 is P02's bound over all coins, including those holding a legacy output), MAX_BRANCH_PROOF_DEPTH = 64
VM MAX_SCRIPT_BYTES, MAX_ARGUMENTS, MAX_ELEMENT_BYTES (working value 8192), MAX_STACK_ITEMS, MAX_ALTSTACK_ITEMS, MAX_VM_BYTES, MAX_AST_DEPTH; loop depth=2 and generic bound=256
Cost & parabolic curves Frozen accounting schedule and extension enforcement schedule (approved cost schedule: 1 cu = one reference hash, 2 cu per wire byte, state-key price pending), MIN_FEE_PER_KB = 1000 atoms per 1000 bytes (indexed by $\sqrt{I}$ for ordinary transactions, read COINBASE_MATURITY blocks back), MAX_INVOCATION_COST, shift parameters ($S_{\text{tx\_knee}} = 18$, $w = 10$, $E_{\min} = 2^{34}$, $S_{\text{linear}} = 32$, $S_{\text{quad}} = 32$) and initial $E_0 = 2^{34}$
Time/chain COINBASE_MATURITY, POW_LIMIT, ASERT anchor and half-life (working value 172800 s), timestamp/future-eligibility rules
Money 56-byte MonetaryState initial values ($R_0 = M_{\text{boot}}$, $T_0$, $W_{-1}$, $E_0$), bootstrap shift ($k_{\text{boot}} = 20$), genesis tail anchors ($T_g$, $W_g$; no tail bounds), per-amount limit (MAX_MONEY = 2^62 atoms, C16a), with values in the issuance calibration ($k_{\text{boot}}$, $B_0$, $R_0$, $T_g$ approved 2026-11-18 as starting values; $W_g$ and C16a recommended; $E_0$ approved in P05), DUST_LIMIT and the token-output burn multiple (C14a), zero genesis issuance; Avalanche payout profile (P06)
Identity ChainID, header/transaction versions, exact genesis bytes/hash, network/address/seed/directory configuration

Represent constants in a versioned machine-readable manifest, not scattered daemon defaults. Its byte grammar and digest must be fixed before freezing; a JSON file with unspecified number/string canonicalization is not yet a consensus hash preimage. An outer release manifest can hash the exact canonical parameter-file bytes without making its own digest part of those bytes.

Feasibility constraints matter as much as maxima: a standard payment must sit comfortably in the flat linear region ($L(\text{tx}) \ll 2^{S_{\text{tx\_knee}}}$); a useful two-level covenant must fit its invocation budget; every valid Output ($\le 844\text{ bytes}$) fits well inside MAX_ELEMENT_BYTES (8192) for UTXOOUTPUT / OUTPUTRECORD introspection; total stack memory must cover legal individual elements; and bounded parser allocations must prevent out-of-memory conditions on rejected inputs before block fee-burn validation runs.

Calibration procedure

Before freezing the numerical mainnet shift constants ($S_{\text{tx\_knee}}, w, E_{\min}, S_{\text{linear}}, S_{\text{quad}}$) and primitive cu schedule, measure scalar worst permitted operands, including each crypto algorithm, wide math, LOG's fixed 64 rounds, hashing, copying, proof handling, sparse-tree updates, large spent coins and asset aggregation, as ratios to the reference hash. Fit integer weights by the rule in the approved cost schedule, and validate the parabolic transaction and block burn floor shifts against economic and hardware stress simulations. How fast a validator must be is a separate requirement, checked by the design-load benchmark, not by the weights.

The measurements are in Lotus resource calibration; the approved values, restated in the reference-hash unit, are in Lotus resource pricing.

Open (2026-11-16): the per-key state charge in the reference cost model and that calibration assumes the earlier UTXO tree, 27 node hashes of a 67-byte preimage. Under the prefix-compressed UtxoRoot (P02) a node preimage is 99 bytes, still two BLAKE3 compressions, and a path holds about 28 nodes on average and at most 256 nodes plus the leaf, 257 hashes in all. The charge needs recalibrating on that worst case alongside the fee schedule.

A separate named development profile may choose smaller values for fixtures. Its name and ChainID must differ from production, and passing it must not be represented as mainnet capacity qualification. No development value is adopted by this packet merely to make the checklist green.

Implementation can begin on the parameterized parser/evaluator, unified cu cost algebra, and parabolic fee-burn checks before final constant calibration. Mainnet readiness cannot. This separates a real implementation dependency from a launch dependency without pretending either is complete.

Liveness (G3), relative to the tail. There is no tail minimum (P06), so liveness is stated against the current tail and recent burn, not as a fixed guarantee. A coinbase-only block at step $n$, with cost $C_{\text{cb}}$ and byte charge $K$, is affordable from the tail alone when $T_n \ge K + ((C_{\text{cb}} \cdot \max(E_n, E_{\min})) \gg S_{\text{linear}}) + (C_{\text{cb}}^2 \gg S_{\text{quad}})$. The EMA update gives $E_{n+1} \le \max(E_n, C_{\text{block}})$, so $E_n \le \max(E_0, \text{largest accepted } C_{\text{block}}) < 2^{64}$ whatever is issued. Bounding $E_n$ by recent burn instead: with $D_n = \sum_k (1 - 2^{-w})^{\text{age}_k} P_k$ the decayed sum of past block burns $P_k$, Cauchy–Schwarz and $P_k \ge C_k^2 \gg S_{\text{quad}}$ give $E_n \le E_0 + \sqrt{2^{S_{\text{quad}} - w}(D_n + 2^w)} + 2^w$. So the coinbase-only block is affordable whenever

$$D_n < D^*(T_n) = \left(\frac{\big(T_n - K - (C_{\text{cb}}^2 \gg S_{\text{quad}})\big) \cdot 2^{S_{\text{linear}}}}{C_{\text{cb}}} - E_0 - 2^w\right)^2 \cdot 2^{w - S_{\text{quad}}}$$

With the approved values a coinbase-only block costs about 1,438 cu. The smallest tail is at POW_LIMIT work: with the placeholder POW_LIMIT = 2^224 - 1 the work per block is $2^{32}$ and $T \ge 583{,}895$ atoms (0.584 XPI). There the coinbase-only floor is 5,752 atoms (K = 377) and $D^*$ is about $4.5\,R_0$, and the cheapest constant-cost attack found needs about $13.7\,R_0$. Everything issued in the first 4 years is about $0.64\,R_0$, so during the bootstrap G3 holds at any hash rate. Later it can fail only if supply has grown past several $R_0$, hash rate then falls to near POW_LIMIT, and several $R_0$ are burned within the EMA's memory (about a day); even then one transaction paying about 2.3 XPI in fees funds the next block. No finite parameter makes G3 unconditional while issuance is unbounded. These figures depend on the placeholder POW_LIMIT and the pending state-key price, and must be rechecked when either changes. Underclaim may consume subsidy but cannot make a negative payout valid. Coinbase output amounts use fixed-width encoding, so reducing the claim does not change its serialized length; constructors finalize output count/policies before computing the deduction.


References

  1. [Chancellor 2026] Shammah Chancellor, "Adaptive PoW Monetary Policy Without Oracles: A Constructive Mechanism for Pseudo-Stability via Work-Coupled Tail Emission and Burn", Lotus Network Technical Paper, 2026.
  2. [Buterin et al. 2019] Vitalik Buterin, Eric Conner, Rick Dudley, Matthew Slipper, Ian Norden, and Abdelhamid Bakhta, "EIP-1559: Fee market change for ETH 1.0 chain", Ethereum Improvement Proposals, April 2019.
  3. [Roughgarden 2020] Tim Roughgarden, "Transaction Fee Mechanism Design for the Ethereum Blockchain: An Economic Analysis of EIP-1559", arXiv:2012.00854, December 2020.
  4. [Nakamoto 2008] Satoshi Nakamoto, "Bitcoin: A Peer-to-Peer Electronic Cash System", October 2008 (https://bitcoin.org/bitcoin.pdf).
  5. [Lombrozo, Lau, & Wuille 2015] Eric Lombrozo, Johnson Lau, and Pieter Wuille, "BIP 141: Segregated Witness (Consensus layer)", Bitcoin Improvement Proposals, December 2015.