Repository navigation
Releases
Releases · jam-conformance/jam-test-vectors
v0.8.0
Changed
- Validator sequences (
ValidatorsData,ValidatorsStatistics, epoch markvalidators) and verdictvotesare bounded sequences instead of fixed-size sequences.WorkPackageSpecrecords the number of erasure shards (erasure-shards). (GP [#514](gavofyork/graypaper#514), [#527](gavofyork/graypaper#527)) RefineContextcarriesanchor-slotandlookup-anchor-state-root. Recent blocks history items and the history STF input carry the blockslot. (GP [#526](gavofyork/graypaper#526))- Availability assignments hold the full
ReportGuaranteeand theregistered-slotinstead of the bare work report and a timeout. (GP [#494](gavofyork/graypaper#494)) - Service accumulation statistics carry
accumulate-transfer-count. New accumulate vectortransfer_for_live_service. (GP [#502](gavofyork/graypaper#502)) - Disputes: removed the two-culprits minimum for
badverdicts. Thenot-enough-culpritserror is gone and the error codes are renumbered (seestf/disputes/disputes.asn). (GP [#525](gavofyork/graypaper#525)) - New PVM gas cost model,
sbrkinstruction removed,grow_heaphost call added, host calls priced per the GP gas table. Accumulate vectors and block import traces are regenerated with the new costs (seetraces/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(κ') aftercurr-validators(κ), so that the clearing of pending reports on a validator set size change can be exercised. New vectorval_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 codebad-votes-count) and, full only,progress_with_verdicts_from_resized_previous_set; accumulatedesignate_with_invalid_countandpreimage_len_bound(GP [#520](gavofyork/graypaper#520)); full only, reportsreport_with_shrunken_val_setand safroleenact-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_preimageandcreate_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-sizeis aU64. The GP types it inN, and the sum over the reports of one service can exceedU32. The field is compact encoded, so no vector changes.TicketAttemptis encoded as one octet, as the GP and the schema say. The.binfiles used the compact form, which differs for attempts of 128 or more. Onlystf/safrole/full/enact-epoch-change-with-set-resize-{2,3,4}.binchange, 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_accumulatesandtransfer_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_registrarandrecreate_service_ejected_in_earlier_round. Therecreate_ejected_servicevectors 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_heapout-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_heapaddress-space limit rounds the stack reservation up to the 64 KiB zone size, as per GP [#538](gavofyork/graypaper#538).- The
blesshost call does not refuse a non-manager caller (GP [#519](gavofyork/graypaper#519)). The accumulate vectorsbless_from_non_managerfollow this deviation: the designator hands its role over viabless, where GP 0.8.0 answersHUHand keeps the designator. The upcoming GP [#558](gavofyork/graypaper#558) allows non-manager privilege holders to hand over their role viabless; both changes will be applied together. - The PVM gas cost model counts the destination register of
cmov_iz,cmov_nz,cmov_iz_immandcmov_nz_immas a source register, as per GP [#559](gavofyork/graypaper#559). The accumulate vectors and thefuzzyandfuzzy_lightblock 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
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
transferhost 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
CHANGES
- Remove
on_transferfrom 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 accumulateStfState(see ASN.1 syntax).
DEVIATIONS
- Accumulation statistics for services accumulation are updated according to version 0.7.2.
In 0.7.2, service stats need to be updated when any service accumulation logic has been executed.
(https://graypaper.fluffylabs.dev/#/ab2cdbd/18e60318e603?v=0.7.2)
v0.7.0
CHANGES
- Serialization: Move all variable-length items to end of encoding (GP #418)
- Rearrange the items in
CoreActivityRecordandServiceActivityRecord, refer to the ASN.1 schema and GP (no explicit GP PR).
DEVIATIONS
- gavofyork/graypaper#480 (Unreleased)
New TINY constant
-
$G_T$ ( max per block gas ) fortinyspec fixed to 20_000_000 (ref JamBrains/jam-docs#59)
v0.6.7
- Rearrange the inner PVM page admin (GP #402)
- PVM pages can change access without clearing (GP #404)
- Renumber host-calls (GP #408)
infohost 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
- gavofyork/graypaper#440 (since the beginning)
- gavofyork/graypaper#414 (since v0.6.6)
- gavofyork/graypaper#433
** Unreleased Changes**
v0.6.6
- Extended the
fetchhost 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/jsonstep, 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.binfile 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 (
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
