# Runtime 120 and 121 compatibility The live testnet runs `quip-testnet` spec 120 / transaction 7 from release `v0.5.0` (`d763e2e8ae637170a75ce120441cb6fd3f5ab55c`), as confirmed by the network owner on 2026-11-16. The documented bootnode returned that runtime identity on the same date. Earlier text describing the live network as spec 119 and runtime 120 as never deployed was stale. Runtime 121 is an in-place hotfix for that `v0.5.0` runtime. It pauses new XQVM program admission pending a verifier update. It replaces the inherited `Everything` base call filter with a filter refusing only `Xqvm.store_program`; callers receive `system.CallFiltered` before program admission. Stored programs can still execute, and mempool specifications can still reference them. Uploading new programs, including re-uploading removed ones, is unavailable until the verifier update is deployed. Other calls retain their existing filter behavior. Pool validation does not apply the base call filter: a submitted storage call can still be included, fail with `CallFiltered`, and pay its transaction fee. Clients should stop submitting these calls during the pause. Root `Utility.dispatch_as` and `dispatch_as_fallible` can bypass the filter; this is an accepted governance capability, not permission granted to ordinary signed accounts. The hotfix changes neither storage layout, call/error indices, signed extensions nor transaction version 7. Both runtime crates move to spec 121, but the live network requires the **quip-testnet** Wasm, not the `quip` Wasm. Clients must refresh runtime metadata and sign new transactions against spec 121; an unchanged transaction version does not preserve signatures made for spec 120. Before enactment, operators must confirm the deployed `:code` against the approved `v0.5.0` testnet artifact, verify the new blob's `quip-testnet` / 121 / 7 identity and exact code hash, and complete the normal upgrade-state checks. Matching version numbers alone do not establish code provenance. Stop if the code hash or storage compatibility differs from the approved baseline. The older `v0.4.1`-tagged 120 blob remains prohibited on every network. It and other incompatible older-120 variants are not valid upgrade bases for this hotfix; they required fresh genesis and lacked a compatible migration path. An older spec-119/H1-H3 chain must not enact this blob merely because 121 is a higher number. Do not purge or replace the live chain database for this upgrade. Spec 120 / transaction 7 does not uniquely identify runtime code. The [`v0.4.1` release tag](https://gitlab.com/quip.network/quip-validator/-/tree/v0.4.1) points to `cb09fe643630adbc503e3f5255353c098aae52e6` (`spec_name = quip`, spec 120 / transaction 7). Its published image is `registry.gitlab.com/quip.network/quip-validator/quip-network-node` at manifest-list digest `sha256:f3863f77c4e6ef8808e8f44ad11e0c79c8025d69603aa992005fee2ed397d198`. The two platform images embed different code bytes: | Image platform | Blake2-256 of the exact `:code` bytes | |---|---| | `linux/amd64` | `0x79c79de08948bdaae3423e8d81c6abbdf12cd0eec99168037fb9fa6462252937` | | `linux/arm64` | `0xdc4cea1eaf961a4c090bbd63dff51a0d8dd4acfc899559254cbf0a08d29d5d82` | This list is not exhaustive. Release builds are not byte-reproducible across platforms, so any blob built from the `v0.4.1` tag is prohibited whatever its hash. A non-matching hash is not evidence that a 120 blob comes from this branch; identify this branch's runtime by its own published code hash. The stable2609 release must publish its own exact `:code` hash for each shipped artifact when it ships; a denylist alone cannot establish runtime identity. These hashes were extracted from the digest-pinned release images, not from a rebuild. To reproduce either value, export the embedded runtime without starting a node (substitute `linux/arm64` for the other image): ```bash docker run --rm --platform linux/amd64 --network none \ --entrypoint /usr/local/bin/quip-network-node \ registry.gitlab.com/quip.network/quip-validator/quip-network-node@sha256:f3863f77c4e6ef8808e8f44ad11e0c79c8025d69603aa992005fee2ed397d198 \ build-spec --chain dev --raw > v0.4.1-raw.json python3 -c 'import hashlib,json; code=bytes.fromhex(json.load(open("v0.4.1-raw.json"))["genesis"]["raw"]["top"]["0x3a636f6465"][2:]); print("0x"+hashlib.blake2b(code,digest_size=32).hexdigest())' ``` Compare this Blake2-256 value with the hash of the on-chain `:code` storage value (key `0x3a636f6465`), or `System.CodeUpdated.hash` where that event field exists. Hash the stored bytes as-is, including compression; the image's SHA-256 digest, metadata hash and runtime version numbers are different identifiers. A matching release code hash identifies a prohibited blob, not approval to enact it. The older spec-119 chain had no `CodeUpdated.hash` event field: a `System.authorize_upgrade(code_hash)` proposal naming one of the hashes above, or a `set_code` call whose code argument hashes to one of them, targets a prohibited blob; check the proposed code hash before voting, not after enactment. The accepted batch-mapping and native contract-deposit policies, plus the re-anchor procedure, are documented in the [repository README](../README.md). The stable2609 port renumbers `MultiBlockElectionSigned` events rather than appending them: `Slashed`, `Ejected`, `Discarded`, and `Bailed` move from indices 3–6 to 6–9. Decoders and indexers using pre-port runtime-120 metadata, including the published `v0.4.1` 120/7 blob, must refresh their metadata. Revive's `DeletionQueue` value changes from `BoundedVec` to `DeletionQueueItem { trie_id, account_id }`. This storage-layout change is safe only because the stable2609 runtime-120 baseline launched from fresh genesis; the port was not an in-place upgrade for an incompatible older runtime-120 chain. The 121 hotfix preserves the deployed `v0.5.0` layout. `System.CodeUpdated` (event index 2) gains a `hash: H256` field, so upgrade watchers must update their decoders. `Offences.Offence` (event index 0) renames `timeslot` to `slot`; the SCALE encoding is unchanged, but name-based decoders must update. Against the archived pre-vesting baseline, `Template` at index 7 is removed and that index is retired; `Vesting` is present at index 32. The new signed-election events occupying indices 3–5 are `RewardPaymentDeferred`, `UnpaidRewardEvicted`, and `FeeRefundFailed`. Other storage metadata changes include Revive's `EthereumBlock` type moving from `evm::api::rpc_types_gen::Block` to `evm::api::block::Block`, and new `Revive.NativeDepositOf`, `MultiBlockElectionSigned.UnpaidRewards`, and `Vesting.Vesting`/`Vesting.StorageVersion` entries. These are part of the fresh-genesis baseline, not an in-place storage migration. `ReviveApi` is now version 2 and uses `pallet_revive_types` V1 payload/result types. It adds `eth_estimate_gas`, `eth_pre_dispatch_weight`, `trace_call_with_config`, `max_extrinsic_weight_in_gas`, `version_declarations`, and 24 `*_versioned` methods. Deploy a 2609-compatible eth-rpc proxy in lockstep with this runtime. `RuntimeFreezeReason::Revive` at index 14 raises `Balances::MaxFreezes` from 0 to 1. With Revive configured with `Deposit = ()`, that freeze is never applied. Since runtime 120 (stable2609), general (V5) extrinsic wrappers must use transaction-extension version 0. Nonzero versions previously accepted around `eth_transact` now fail during decoding. The checked-in Quip production builders construct none of these nonzero wrappers, in either the inspected pre-port or current code, so this tightening introduces no wrapper-related upgrade-ordering requirement for that tooling. Third-party clients that hand-built such wrappers must use bare V5 or general V5/version 0 instead. Only the outer wrapper changes: the signed Ethereum payload is unchanged and does not need to be re-signed. This applies to legacy/EIP-155, EIP-2930 and EIP-1559 transactions; Ethereum transaction type numbers are separate from outer extension versions. The batch-mapping call has index 13; Revive also adds `AutoMappingEnabled` and `PendingDepositCleanup` errors at indices 66 and 67. The signed election phase remains disabled. `MaxFeeRefund = 0` is a latent change from the old SDK's uncapped winner fee refund: enabling the phase without revisiting this setting would refund no fees. The reward source uses the dedicated `qp/sgnrd` pallet account rather than SDK minting. It has no configured funding, so positive rewards from an empty pot are deferred; external transfers can fund it, but payouts still transfer existing funds. `MultiBlockElectionSigned.claim_unpaid_reward` is call 5; its new errors are `NoUnpaidReward` (9) and `PotStillDepleted` (10). The disabled signed phase normally creates no rewards to claim; the call itself remains dispatchable and rejects a claim when no queued reward exists. Against the archived pre-vesting baseline, `System.BlockWeights` base block and extrinsic costs move from 439,945/319,244 ns to 447,438/316,760 ns. `Xqvm.WeightPerStep` changes from 35,592 to 29,256 ps and the derived `Xqvm.MaxStepLimit` from 21,044,939 to 25,613,469. These values include the reference-machine regeneration in `c67fbdb`. Mempool VM errors occupy indices 36–44; its limits are 5,000,000 transform steps per submission and 16,777,216 bytes of VM memory, with `VmWeightPerStep` matching the XQVM rate. The historical stable2609 port kept spec 120/transaction 7 with the same signed-extension set, but changed the metadata hash. This hotfix advances spec to 121 and keeps transaction version 7. Signers enabling `CheckMetadataHash` need the new metadata. Wallets caching by `(specName, specVersion)` must refetch rather than assume that matching 120/7 identifies the metadata in the published `v0.4.1` blob. The pre-vesting evidence (captured from `ba20b1e`, checked in by `b483bfb`) remains in git history at [`b483bfb:tests/fixtures/pre-vesting/manifest.json`](https://gitlab.com/quip.network/quip-validator/-/blob/b483bfb1f8fb58e0be86f72c73bdf8119de63329/tests/fixtures/pre-vesting/manifest.json). The original `f7da5ec` post-vesting capture is preserved in [`tests/fixtures/post-vesting-f7da5ec/manifest.json`](../tests/fixtures/post-vesting-f7da5ec/manifest.json); its validation claims predate the review corrections above. The corrected 100×ED capture is recorded separately in [`tests/fixtures/post-vesting-fix/manifest.json`](../tests/fixtures/post-vesting-fix/manifest.json). SDK weights remain provisional until the reference-machine run and final metadata/storage/signing review tracked by [QUI-2101](https://linear.app/quip-network/issue/QUI-2101/vesting-release-gate-reference-machine-weights-and-metadata-re), owned by `roman@postquant.xyz`. ## Compact family witnesses Family `submit_proof` solutions now use the solver-core v0.0.14 witness codec. The topology descriptor selects the codec by family ID and revision. Allowed-value topologies keep their existing packing. Family miners, submitters, pool judges, and archive readers must use the compact codec. The new decoder replaces the old family decoder without a storage migration. Solutions remain in archived extrinsic bodies. The [archive procedure](family-activation.md#compact-witnesses-and-archived-winners) uses the stored topology and the winning nonce to decode them. That witness-codec change added no solution storage and kept specification 120 and transaction version 7; the admission hotfix now advances specification to 121. The new pallet error changes metadata, so clients must refresh cached metadata.