Skip to content

Releases

v0.8.0

Choose a tag to compare

@davxy davxy released this 08 Oct 13:28
d3c089c

Changed

  • Validator sequences (ValidatorsData, ValidatorsStatistics, epoch mark validators) and verdict votes are bounded sequences instead of fixed-size sequences. WorkPackageSpec records the number of erasure shards (erasure-shards). (GP [#514](gavofyork/graypaper#514), [#527](gavofyork/graypaper#527))
  • RefineContext carries anchor-slot and lookup-anchor-state-root. Recent blocks history items and the history STF input carry the block slot. (GP [#526](gavofyork/graypaper#526))
  • Availability assignments hold the full ReportGuarantee and the registered-slot instead of the bare work report and a timeout. (GP [#494](gavofyork/graypaper#494))
  • Service accumulation statistics carry accumulate-transfer-count. New accumulate vector transfer_for_live_service. (GP [#502](gavofyork/graypaper#502))
  • Disputes: removed the two-culprits minimum for bad verdicts. The not-enough-culprits error is gone and the error codes are renumbered (see stf/disputes/disputes.asn). (GP [#525](gavofyork/graypaper#525))
  • New PVM gas cost model, sbrk instruction removed, grow_heap host call added, host calls priced per the GP gas table. Accumulate vectors and block import traces are regenerated with the new costs (see traces/README.md). (GP [#508](gavofyork/graypaper#508), [#517](gavofyork/graypaper#517))
  • Extrinsic hash: preimages contribute as (requester, hash) pairs rather than full (requester, blob) entries. (GP [#524](gavofyork/graypaper#524))
  • Block import traces: all suites regenerated for 0.8.0.
  • Assurances vectors: the state carries post-validators (κ') after curr-validators (κ), so that the clearing of pending reports on a validator set size change can be exercised. New vector val_set_size_change_clears_pending_reports. (GP [#514](gavofyork/graypaper#514))
  • New vectors for the 0.8.0 rules: disputes progress_with_bad_verdict_without_culprits (GP [#525](gavofyork/graypaper#525)), progress_with_bad_votes_count (new error code bad-votes-count) and, full only, progress_with_verdicts_from_resized_previous_set; accumulate designate_with_invalid_count and preimage_len_bound (GP [#520](gavofyork/graypaper#520)); full only, reports report_with_shrunken_val_set and safrole enact-epoch-change-with-set-resize. (GP [#514](gavofyork/graypaper#514))
  • New accumulate vectors for host calls without one: always_accumulate, assign_from_non_assigner, upgrade_service, lookup_foreign_preimage, provide_preimage and create_service. (GP [#500](gavofyork/graypaper#500), [#517](gavofyork/graypaper#517))

Fixes

  • Trie vectors: node type discriminators moved to the most significant bits of the head byte, key bits consumed most significant bit first.
  • ServiceActivityRecord.extrinsic-size is a U64. The GP types it in N, and the sum over the reports of one service can exceed U32. The field is compact encoded, so no vector changes.
  • TicketAttempt is encoded as one octet, as the GP and the schema say. The .bin files used the compact form, which differs for attempts of 128 or more. Only stf/safrole/full/enact-epoch-change-with-set-resize-{2,3,4}.bin change, the JSON files do not change. ([#114](#114))
  • New accumulate vectors for ejected services. The statistics count the work digests and the transfers of a service ejected in the same round: work_for_service_ejected_in_same_round, transfer_for_service_ejected_in_same_round, transfer_for_ejected_service_that_accumulates and transfer_to_service_ejected_by_sender. The registrar creates an ejected id again: recreate_ejected_service, recreate_ejected_service_that_accumulates, recreate_ejected_service_by_higher_registrar and recreate_service_ejected_in_earlier_round. The recreate_ejected_service vectors follow the GP 0.8.0 merge rule (d ∪ n) \ m, so the prior account stays. GP [#539](gavofyork/graypaper#539) replaces this rule after 0.8.0.

Deviations

  • grow_heap out-of-gas handling follows GP [#533](gavofyork/graypaper#533): when the remaining gas cannot cover the call cost the gas counter is drained to zero and the call exits out-of-gas.
  • grow_heap address-space limit rounds the stack reservation up to the 64 KiB zone size, as per GP [#538](gavofyork/graypaper#538).
  • The bless host call does not refuse a non-manager caller (GP [#519](gavofyork/graypaper#519)). The accumulate vectors bless_from_non_manager follow this deviation: the designator hands its role over via bless, where GP 0.8.0 answers HUH and keeps the designator. The upcoming GP [#558](gavofyork/graypaper#558) allows non-manager privilege holders to hand over their role via bless; both changes will be applied together.
  • The PVM gas cost model counts the destination register of cmov_iz, cmov_nz, cmov_iz_imm and cmov_nz_imm as a source register, as per GP [#559](gavofyork/graypaper#559). The accumulate vectors and the fuzzy and fuzzy_light block import traces follow this rule.
  • Program blobs are limited to 2^25 octets of code and 2^24 jump table entries, as per GP [#559](gavofyork/graypaper#559).

v0.7.2

Choose a tag to compare

@davxy davxy released this 02 Dec 13:58
1d635e0

Changes

  • Simplify fetch hostcall case 8: fetch only authorizer config blob (GP #486)
  • Fix accumulation statistics to include services accumulated forfree or due to transfers (GP #484).
  • PVM Invocations: Correct gas charge for transfer host call failures (GP #488)
  • Fix max size of concatenated variable-size blobs, extrinsics and imported segments of a work package.
    (GP #493)

v0.7.1

Choose a tag to compare

@davxy davxy released this 04 Nov 18:25
84213c3

CHANGES

  • Remove on_transfer from service statistics (GP #457)
  • Serialization: Include version byte prefix for accounts (GP #472)
  • Registrar service privilege (GP #473)
  • Add preimage provision status to the Accounts structure of accumulate StfState (see ASN.1 syntax).

DEVIATIONS

v0.7.0

Choose a tag to compare

@davxy davxy released this 26 Aug 10:15

CHANGES

  • Serialization: Move all variable-length items to end of encoding (GP #418)
  • Rearrange the items in CoreActivityRecord and ServiceActivityRecord, refer to the ASN.1 schema and GP (no explicit GP PR).

DEVIATIONS

New TINY constant

v0.6.7

Choose a tag to compare

@davxy davxy released this 07 Aug 09:05
  • Rearrange the inner PVM page admin (GP #402)
  • PVM pages can change access without clearing (GP #404)
  • Renumber host-calls (GP #408)
  • info host call uses fixed length types (GP #410)
  • Accounts storage deposit offset and additional metadata (GP #397 and #400)
  • Core assignment privileges is a sequence, one item per core (GP #393)
  • Most recent accumulation outputs are stored in state; Recent blocks history now stores
    the MMR roots only, the full MMR structure relative to the last accumulation is kept
    separately (GP #405)
  • New bundle size limit (GP #407)

DEVIATIONS

Changes from version 0.7.0 that have already been incorporated

** Unreleased Changes**

v0.6.6

Choose a tag to compare

@davxy davxy released this 25 Jun 21:49
1d98c77
  • Extended the fetch host call with new variants.
  • Updated numeric identifiers used in fetch.
  • Updated numeric identifiers for PVM errors.
  • PVM wrangled operands changed.
  • Removed the traces 000...000.bin/json step, as it was not a valid trace step and was intended to be handled specially for genesis. Since it shared the same format as regular trace steps, it could be ambiguous or misleading.
  • Introduced an explicit genesis.bin file containing the genesis state and header.
  • The authorizer trace field has been moved to the end of the accumulation operand encoding (C.29)

DEVIATIONS

fetch host call for protocol parameters ($\omega_{10}=0$) has been implemented according to this (currently) unreleased change: gavofyork/graypaper#414

For the fetch hostcall id we're still using 18 as per GP 0.6.6. The picked change only concerns the value returned for w_10=0

Screenshot_2025-06-21-21-09-27-15_3aea4af51f236e4932235fdada7d1643

v0.6.5

Choose a tag to compare

@davxy davxy released this 02 Jun 17:15
34664f3
Merge pull request #67 from davxy/prepare-v0.6.5