Skip to content

Commit b22e87e

Browse files
authored
Merge pull request #41 from tomaka/close-40
Remove `authoringVersion` from runtime spec
2 parents bea1a60 + df79866 commit b22e87e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/api/chainHead_unstable_follow.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ The format of the `finalizedBlockRuntime` and `newRuntime` fields can be one of:
178178
"spec": {
179179
"specName": ...,
180180
"implName": ...,
181-
"authoringVersion": ...,
182181
"specVersion": ...,
183182
"implVersion": ...,
184183
"transactionVersion": ...,
@@ -195,8 +194,6 @@ The fields of `spec` are:
195194

196195
- `implName`: Opaque string indicating the name of the implementation of the chain.
197196

198-
- `authoringVersion`: Opaque integer. Used by the internals of validator nodes that use a native executor in order to be sure that their native executor matches the WebAssembly code.
199-
200197
- `specVersion`: Opaque integer. The JSON-RPC client can assume that the call to `Metadata_metadata` will always produce the same output as long as the `specVersion` is the same.
201198

202199
- `implVersion`: Opaque integer. Whenever the runtime code changes in a backwards-compatible way, the `implVersion` is modified while the `specVersion` is left untouched.
@@ -205,17 +202,18 @@ The fields of `spec` are:
205202

206203
- `apis`: Object containing a list of "entry point APIs" supported by the runtime. Each key is an opaque string indicating the API, and each value is an integer version number. Before making a runtime call (using `chainHead_unstable_call`), you should make sure that this list contains the entry point API corresponding to the call and with a known version number.
207204

208-
**Note**: In Substrate, the key contains the hexadecimal-encoded 8-bytes blake2 hash of the name of the API. For example, the `TaggedTransactionQueue` API is `0xd2bc9897eed08f15`.
205+
**Note**: In Substrate, the keys in the `apis` field consists of the hexadecimal-encoded 8-bytes blake2 hash of the name of the API. For example, the `TaggedTransactionQueue` API is `0xd2bc9897eed08f15`.
209206

210207
**Note**: The format of `apis` is not the same as in the legacy JSON-RPC API.
211208

209+
**Note**: The list of fields is only a subset of the list of so-called "runtime specification" found in the runtime. The fields that aren't useful from a JSON-RPC client perspective are intentionally not included.
210+
212211
#### Example value
213212

214213
```json
215214
{
216215
"specName": "westend",
217216
"implName": "parity-westend",
218-
"authoringVersion": 2,
219217
"specVersion": 9122,
220218
"implVersion": 0,
221219
"transactionVersion": 7,

0 commit comments

Comments
 (0)