Skip to content

Commit 22b69f8

Browse files
committed
Fix ASN.1 for stats
1 parent f165871 commit 22b69f8

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

jam-types-asn/jam-types.asn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ BlocksHistory ::= SEQUENCE (SIZE(0..max-blocks-history)) OF BlockInfo
254254
-- Statistics
255255
--------------------------------------------
256256

257-
ActivityRecord ::= SEQUENCE {
257+
ValidatorActivityRecord ::= SEQUENCE {
258258
blocks U32,
259259
tickets U32,
260260
pre-images U32,
@@ -263,7 +263,7 @@ ActivityRecord ::= SEQUENCE {
263263
assurances U32
264264
}
265265

266-
ActivityRecords ::= SEQUENCE (SIZE(validators-count)) OF ActivityRecord
266+
ValidatorsStatistics ::= SEQUENCE (SIZE(validators-count)) OF ValidatorActivityRecord
267267

268268
CoreActivityRecord ::= SEQUENCE {
269269
-- Amount of bytes which are placed into either Audits or Segments DA.
@@ -323,8 +323,8 @@ ServicesStatisticsMapEntry ::= SEQUENCE {
323323
ServicesStatistics ::= SEQUENCE OF ServicesStatisticsMapEntry
324324

325325
Statistics ::= SEQUENCE {
326-
vals-current ActivityRecords,
327-
vals-last ActivityRecords,
326+
vals-curr ValidatorsStatistics,
327+
vals-last ValidatorsStatistics,
328328
cores CoresStatistics,
329329
services ServicesStatistics
330330
}

preimages/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ and this subsystem STF specific [schema](./preimages.asn).
55

66
## Statistics
77

8-
A subset of `ServiceActivityRecord` structure is updated by the STF involved processing these test vectors.
9-
In particular the `provided-count` and `provided-size` items are updated when new preimages are provided
10-
to be included in the chain storage via the extrinsic.
8+
A subset of `ServiceActivityRecord` structure is updated by the STF involved
9+
processing these test vectors.
10+
11+
In particular the `provided-count` and `provided-size` items are updated
12+
when new preimages are provided to be included in the chain storage via the
13+
extrinsic.
1114

1215
## Vectors
1316

statistics/statistics.asn

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
StatisticsModule DEFINITIONS ::= BEGIN
44

55
IMPORTS
6-
TimeSlot, ValidatorIndex, Statistics, Extrinsic, ValidatorsData
6+
TimeSlot, ValidatorIndex, ValidatorsStatistics, Extrinsic, ValidatorsData
77
FROM JamTypes;
88

99

1010
State ::= SEQUENCE {
11-
-- [π] Prior statistics. Mutated to π'.
12-
statistics Statistics,
11+
-- [π_V] Current validators statistics. Mutated to π_V'.
12+
vals-curr-stats ValidatorsStatistics,
13+
-- [π_L] Last validators statistics. Mutated to π_L'.
14+
vals-last-stats ValidatorsStatistics,
1315
-- [τ] Prior timeslot.
1416
slot TimeSlot,
1517
-- [κ'] Posterior active validators.

0 commit comments

Comments
 (0)