Skip to content

v0.8.0

Latest

Choose a tag to compare

@davxy davxy released this 08 Oct 13:28
· 12 commits to master since this release
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).