Skip to content

Commit 07aa8d7

Browse files
authored
Merge pull request #87 from davxy/v0.6.7
GP v0.6.7
2 parents d039d17 + 07f13ed commit 07aa8d7

File tree

1,909 files changed

+381813
-198889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,909 files changed

+381813
-198889
lines changed

CHANGELOG.md

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,55 @@
1-
## v0.6.6 [25-06-2025]
2-
3-
### Changes
1+
## [0.6.7] - 31-07-2025
2+
3+
### Changed
4+
5+
* Rearrange the inner PVM page admin
6+
(GP [#402](https://github.com/gavofyork/graypaper/pull/402))
7+
* PVM pages can change access without clearing
8+
(GP [#404](https://github.com/gavofyork/graypaper/pull/404))
9+
* Renumber host-calls [#715](https://github.com/paritytech/polkajam/pull/715)
10+
(GP [#408](https://github.com/gavofyork/graypaper/pull/408))
11+
* `info` host call uses fixed length types
12+
(GP [#410](https://github.com/gavofyork/graypaper/pull/410))
13+
* Accounts storage deposit offset and additional metadata
14+
(GP [#397](https://github.com/gavofyork/graypaper/pull/397)
15+
and [#400](https://github.com/gavofyork/graypaper/pull/400))
16+
* Core assignment privileges is a sequence, one item per core
17+
(GP [#393](https://github.com/gavofyork/graypaper/pull/393))
18+
* Most recent accumulation outputs are stored in state; Recent blocks history now stores
19+
the MMR roots only, the full MMR structure relative to the last accumulation is kept
20+
separately (GP [#405](https://github.com/gavofyork/graypaper/pull/405))
21+
* New bundle size limit (GP [#407](https://github.com/gavofyork/graypaper/pull/407))
22+
23+
## [0.6.6] - 25-06-2025
24+
25+
### Changed
426

527
- Codebase reorganization
628
- Binary to JSON conversion scripts and utilities
729
* Extended the `fetch` host call with new variants.
830
* Updated numeric identifiers used in `fetch`.
931
* Updated numeric identifiers for PVM errors.
1032
* PVM wrangled operands changed.
11-
* 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.
33+
* Removed the traces `000...000.bin/json` step, as it was not a valid trace step
34+
and was intended to be handled specially for genesis. Since it shared the same
35+
format as regular trace steps, it could be ambiguous or misleading.
1236
* Introduced an explicit `genesis.bin` file containing the genesis state and header.
13-
* The *authorizer trace* field has been moved to the end of the accumulation operand encoding (C.29)
37+
* The *authorizer trace* field has been moved to the end of the accumulation
38+
operand encoding (C.29)
1439

1540
### Deviations
1641

17-
* `fetch` host call for protocol parameters ($\omega_{10}=0$) has been implemented according to this (currently) unreleased change: https://github.com/gavofyork/graypaper/pull/414
18-
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
42+
* `fetch` host call for protocol parameters ($\omega_{10}=0$) has been implemented
43+
according to this (currently) unreleased change: https://github.com/gavofyork/graypaper/pull/414
44+
For the `fetch` hostcall id we're still using 18 as per GP 0.6.6. The picked
45+
change only concerns the value returned for w_10=0
1946

2047
### Extra
2148

2249
* Codebase reorganization
2350
* Binary to JSON conversion scripts and utilities
2451
* CI: ASN.1 verification
2552

26-
## v0.6.5 [02-06-2025]
53+
## [0.6.5] - 02-06-2025
2754

2855
- First Release

lib/full-const.asn

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ Constants DEFINITIONS ::= BEGIN
55
-- True constants
66

77
validators-count INTEGER ::= 1023
8-
cores-count INTEGER ::= 341
8+
core-count INTEGER ::= 341
99
epoch-length INTEGER ::= 600
1010

1111
max-tickets-per-block INTEGER ::= 16
1212
tickets-per-validator INTEGER ::= 2
1313

14-
max-blocks-history INTEGER ::= 8
15-
16-
auth-pool-max-size INTEGER ::= 8
17-
auth-queue-size INTEGER ::= 80
18-
1914
-- Derived constants
2015

2116
-- ceil(validators-count * 2/3 + 1)
2217
validators-super-majority INTEGER ::= 683
23-
-- floor((cores-count + 7) / 8)
18+
-- floor((core-count + 7) / 8)
2419
avail-bitfield-bytes INTEGER ::= 43
2520

2621
END

lib/jam-types.asn

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,21 @@
66

77
JamTypes DEFINITIONS ::= BEGIN
88

9+
--------------------------------------------------------------------------------
10+
-- Constants
11+
--------------------------------------------------------------------------------
12+
913
IMPORTS
10-
-- Constants
11-
validators-count, epoch-length, cores-count,
14+
validators-count, epoch-length, core-count,
1215
validators-super-majority, avail-bitfield-bytes,
1316
max-blocks-history, max-tickets-per-block,
1417
auth-pool-max-size, auth-queue-size
1518
FROM Constants;
1619

20+
max-blocks-history INTEGER ::= 8
21+
auth-pool-max-size INTEGER ::= 8
22+
auth-queue-size INTEGER::= 80
23+
1724
--------------------------------------------------------------------------------
1825
-- Simple Types
1926
--
@@ -138,8 +145,16 @@ ServiceInfo ::= SEQUENCE {
138145
min-memo-gas Gas,
139146
-- Total bytes stored by the service
140147
bytes U64,
148+
-- Offset of storage footprint only above which a minimum deposit is needed.
149+
deposit-offset U64,
141150
-- Number of items stored by the service
142-
items U32
151+
items U32,
152+
-- Creation time slot
153+
creation-slot U32,
154+
-- Most recent accumulation time slot
155+
last-accumulation-slot U32,
156+
-- Parent service identifier
157+
parent-service U32
143158
}
144159

145160
--------------------------------------------------------------------------------
@@ -166,7 +181,7 @@ AvailabilityAssignmentsItem ::= CHOICE {
166181
}
167182

168183
-- Assignments for all cores in the system
169-
AvailabilityAssignments ::= SEQUENCE (SIZE(cores-count)) OF AvailabilityAssignmentsItem
184+
AvailabilityAssignments ::= SEQUENCE (SIZE(core-count)) OF AvailabilityAssignmentsItem
170185

171186
--------------------------------------------------------------------------------
172187
-- Refine Context
@@ -211,12 +226,12 @@ AuthorizerHash ::= OpaqueHash
211226
-- Pool of authorizer hashes for a core
212227
AuthPool ::= SEQUENCE (SIZE(0..auth-pool-max-size)) OF AuthorizerHash
213228
-- Pools of authorizers for all cores
214-
AuthPools ::= SEQUENCE (SIZE(cores-count)) OF AuthPool
229+
AuthPools ::= SEQUENCE (SIZE(core-count)) OF AuthPool
215230

216231
-- Queue of authorizer hashes for a core
217232
AuthQueue ::= SEQUENCE (SIZE(auth-queue-size)) OF AuthorizerHash
218233
-- Queues of authorizers for all cores
219-
AuthQueues ::= SEQUENCE (SIZE(cores-count)) OF AuthQueue
234+
AuthQueues ::= SEQUENCE (SIZE(core-count)) OF AuthQueue
220235

221236
--------------------------------------------------------------------------------
222237
-- Work Package
@@ -405,9 +420,9 @@ ReportedWorkPackage ::= SEQUENCE {
405420
BlockInfo ::= SEQUENCE {
406421
-- Hash of the block header
407422
header-hash HeaderHash,
408-
-- Merkle Mountain Range
409-
mmr Mmr,
410-
-- Posterior state root at this block
423+
-- Merkle Mountain Range root
424+
beefy-root OpaqueHash,
425+
-- Posterior state root
411426
state-root StateRoot,
412427
-- Work packages reported in this block
413428
reported SEQUENCE OF ReportedWorkPackage
@@ -416,6 +431,14 @@ BlockInfo ::= SEQUENCE {
416431
-- History of recent blocks
417432
BlocksHistory ::= SEQUENCE (SIZE(0..max-blocks-history)) OF BlockInfo
418433

434+
-- Imported Blocks Information
435+
RecentBlocks ::= SEQUENCE {
436+
-- Recent blocks history
437+
history BlocksHistory,
438+
-- MMR
439+
mmr Mmr
440+
}
441+
419442
--------------------------------------------------------------------------------
420443
-- Statistics
421444
--
@@ -463,7 +486,7 @@ CoreActivityRecord ::= SEQUENCE {
463486
}
464487

465488
-- Statistics for all cores
466-
CoresStatistics ::= SEQUENCE (SIZE(cores-count)) OF CoreActivityRecord
489+
CoresStatistics ::= SEQUENCE (SIZE(core-count)) OF CoreActivityRecord
467490

468491
-- Record of a service's activity
469492
ServiceActivityRecord ::= SEQUENCE {
@@ -693,7 +716,7 @@ ReportGuarantee ::= SEQUENCE {
693716
}
694717

695718
-- Extrinsic containing guarantees for work reports
696-
GuaranteesExtrinsic ::= SEQUENCE (SIZE(0..cores-count)) OF ReportGuarantee
719+
GuaranteesExtrinsic ::= SEQUENCE (SIZE(0..core-count)) OF ReportGuarantee
697720

698721
--------------------------------------------------------------------------------
699722
-- Accumulation
@@ -735,7 +758,7 @@ Privileges ::= SEQUENCE {
735758
-- Service ID with blessing privileges
736759
bless ServiceId,
737760
-- Service ID with assignment privileges
738-
assign ServiceId,
761+
assign SEQUENCE (SIZE(core-count)) OF ServiceId,
739762
-- Service ID with designation privileges
740763
designate ServiceId,
741764
-- Services that are always accumulated

lib/tiny-const.asn

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ Constants DEFINITIONS ::= BEGIN
55
-- True constants
66

77
validators-count INTEGER ::= 6
8-
cores-count INTEGER ::= 2
8+
core-count INTEGER ::= 2
99
epoch-length INTEGER ::= 12
1010

1111
max-tickets-per-block INTEGER ::= 3
1212
tickets-per-validator INTEGER ::= 3
1313

14-
max-blocks-history INTEGER ::= 8
15-
16-
auth-pool-max-size INTEGER ::= 8
17-
auth-queue-size INTEGER::= 80
18-
1914
-- Derived constants
2015

2116
-- ceil(validators-count * 2/3 + 1)
2217
validators-super-majority INTEGER ::= 5
23-
-- floor((cores-count + 7) / 8)
18+
-- floor((core-count + 7) / 8)
2419
avail-bitfield-bytes INTEGER ::= 1
2520

2621
END

scripts/convert-all.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
24

35
# Get the directory containing this script
46
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

scripts/validate-all.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
24

35
# Get the directory containing this script
46
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2.65 KB
Binary file not shown.

0 commit comments

Comments
 (0)