Skip to content

Commit 398abf6

Browse files
committed
Update preimages related stats
1 parent 35788fd commit 398abf6

18 files changed

+93
-16
lines changed

preimages/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Both JSON and SCALE formats conform to the JAM ASN.1 [schema](../jam-types-asn/jam-types.asn)
44
and this subsystem STF specific [schema](./preimages.asn).
55

6+
## Statistics
7+
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.
11+
612
## Vectors
713

814
- [preimage_needed-1](./data/preimage_needed-1.json) 🟢
2 Bytes
Binary file not shown.

preimages/data/preimage_needed-1.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
]
3636
}
3737
}
38-
]
38+
],
39+
"statistics": []
3940
},
4041
"output": {
4142
"ok": null
@@ -72,6 +73,7 @@
7273
]
7374
}
7475
}
75-
]
76+
],
77+
"statistics": []
7678
}
7779
}
18 Bytes
Binary file not shown.

preimages/data/preimage_needed-2.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
]
4141
}
4242
}
43-
]
43+
],
44+
"statistics": []
4445
},
4546
"output": {
4647
"ok": null
@@ -83,6 +84,25 @@
8384
]
8485
}
8586
}
87+
],
88+
"statistics": [
89+
{
90+
"id": 3,
91+
"record": {
92+
"provided_count": 1,
93+
"provided_size": 46,
94+
"refinement_count": 0,
95+
"refinement_gas_used": 0,
96+
"imports": 0,
97+
"exports": 0,
98+
"extrinsic_size": 0,
99+
"extrinsic_count": 0,
100+
"accumulate_count": 0,
101+
"accumulate_gas_used": 0,
102+
"on_transfers_count": 0,
103+
"on_transfers_gas_used": 0
104+
}
105+
}
86106
]
87107
}
88108
}
2 Bytes
Binary file not shown.

preimages/data/preimage_not_needed-1.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
]
3030
}
3131
}
32-
]
32+
],
33+
"statistics": []
3334
},
3435
"output": {
3536
"err": "preimage_unneeded"
@@ -51,6 +52,7 @@
5152
]
5253
}
5354
}
54-
]
55+
],
56+
"statistics": []
5557
}
5658
}
2 Bytes
Binary file not shown.

preimages/data/preimage_not_needed-2.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
]
4444
}
4545
}
46-
]
46+
],
47+
"statistics": []
4748
},
4849
"output": {
4950
"err": "preimage_unneeded"
@@ -79,6 +80,7 @@
7980
]
8081
}
8182
}
82-
]
83+
],
84+
"statistics": []
8385
}
8486
}
2 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)