Protocol Ushuaia2#

Protocol Ushuaia2 (U026) is an emergency successor of Ushuaia (U025), deployed through a user-activated upgrade. This page lists the changes brought by Ushuaia2 with respect to Ushuaia (see Protocol changes). For the list of changes brought by Ushuaia with respect to Tallinn, see Protocol Ushuaia.

An overview of breaking changes and deprecations introduced in protocol Ushuaia2 can be found here. These changes are also listed below in their respective topical section, tagged with Breaking change.

Several issues were mitigated in Ushuaia by the block validation plugin. Ushuaia2 fixes them in the protocol itself; these entries are marked Previously mitigated by the Ushuaia plugin.

The code is available in directory src/proto_026_PtUSHuai of the master branch of Octez and the full documentation in this page.

Environment Version#

Protocol Ushuaia2 uses environment version V17, based on V16 (used by Ushuaia).

  • Fixed the verification of chest keys, which accepted some invalid keys: OPEN_CHEST returned Some 0x instead of None on such a key. Honest chest keys are not affected.

  • Timelock.chest_key_nonce is exposed, to bound the nonce of chest keys.

  • Timelock.open_chest returns Bogus_opening instead of raising on a non-positive time bound.

  • Sapling.UTXO.max_amount and Sapling.UTXO.valid_balance are exposed, to bound the balance of Sapling transactions.

Michelson#

  • Breaking change A chest_key whose nonce exceeds 128 bits is now rejected when parsed. A contract that stores such a key, or pushes one as a literal, can no longer be called. Keys produced with the default parameters, as by octez-client and Taquito, are not affected.

  • Breaking change When the tz5_account_enable feature flag is disabled, as on mainnet, ML-DSA-44 keys, tz5 key hashes and ML-DSA-44 signatures are now rejected when parsed with the error michelson_v1.tz5_account_disabled, now registered. A contract that stores such a value, or pushes one as a literal, cannot be called until the flag is enabled.

  • Strings longer than any valid key, key hash or address are rejected before being decoded. They were already rejected after decoding.

  • OPEN_CHEST with a time bound of 0 now returns None.

  • A sapling_transaction whose balance is outside [-max_amount; max_amount] is now rejected when parsed, with the error sapling.transaction_balance_out_of_bounds.

  • The gas cost of AND on an int and a nat now accounts for the allocation of its result.

Staking#

  • Breaking change A stake from an external staker whose amount is too small to be credited anything fails with the new error operations.stake_amount_too_small. It can now be included in a block, so its fees are paid; simulation still reports the error. Previously mitigated by the Ushuaia plugin, with the error block_validation_plugin.stake_amount_too_small.

  • Breaking change A recently slashed delegate stakes from its liquid balance instead of from its unstake requests, which may still be slashed, as a denounced delegate already did. Previously mitigated by the Ushuaia plugin, which refused any stake from such a delegate with the error block_validation_plugin.delegate_cannot_stake_during_finalization_of_slashed_period.

  • A baker with no own frozen stake no longer receives the frozen rewards of its stakers; they go to its stakers again, as in protocol 024.

Consensus#

  • Double baking evidence whose denounced block header announces different levels in its shell and its fitness is refused, with the new error validate.block.inconsistent_denounced_block_header.

  • Breaking change Double baking evidence whose two headers differ only in their signature is refused with the error validate.block.invalid_double_baking_evidence. Previously mitigated by the Ushuaia plugin, with the error block_validation_plugin.invalid_double_baking_evidence. Such an evidence is still never included in a block.

Smart Rollups#

  • Added version 7 of the WASM PVM, which bounds the payload of store_write before reading it.

  • An inbox proof is bound to the level of its inclusion proof, so a refuter can no longer present a message as belonging to another inbox level. Previously mitigated by the Ushuaia plugin.

  • Refutation and outbox-execution operations whose PVM proof replay raises an exception are now included in blocks: the refutation move is applied and the outbox execution fails. Previously mitigated by the Ushuaia plugin, which kept them out of blocks.

  • A refutation Proof move during the Dissecting phase on a section longer than one tick, or with no agreed start state, fails with Dissection_unexpected_section_size or the new smart_rollup_proof_on_missing_start_state, so its author pays the fees. Previously mitigated by the Ushuaia plugin, which also limited a block to one refutation per game; this limit is removed.

  • A DAL page proof whose published level overflows int32 is now treated as invalid.

  • Request_adal_page reveals are now rejected.

Data Availability Layer#

  • Attestations are no longer emptied during the first attestation_lag blocks following a protocol activation (temporary Ushuaia workaround for issue #8065).

  • Dropped the migration of the DAL attestation history to the dynamic-lag representation, already done in Ushuaia.

  • DAL entrapment evidence always uses the multi-lag path: the lag_index field is required.

Operations#

  • Breaking change A manager operation is refused when paying its fees would empty the fee payer, unless the payer delegates to itself or has a non-zero staked balance. Previously, frozen rollup bonds or unstake requests also kept such a payer allocated, but another operation of the same block could remove them. Such a payer can no longer submit its own operations, including a zero-fee finalize_unstake; any other account can finalize its unstake requests for it.

  • Increase_paid_storage operations whose amount does not fit in an int64 are rejected, with the same error message. Previously mitigated by the Ushuaia plugin.

  • Added the permanent error unreachable_error. Some code paths that the protocol considers unreachable, and that raised an exception, now fail with this error instead.