Skip to content

Commit df79866

Browse files
committed
Remove authoringVersion from runtime spec
1 parent 0bad54f commit df79866

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
@@ -175,7 +175,6 @@ The format of the `finalizedBlockRuntime` and `newRuntime` fields can be one of:
175175
"spec": {
176176
"specName": ...,
177177
"implName": ...,
178-
"authoringVersion": ...,
179178
"specVersion": ...,
180179
"implVersion": ...,
181180
"transactionVersion": ...,
@@ -192,8 +191,6 @@ The fields of `spec` are:
192191

193192
- `implName`: Opaque string indicating the name of the implementation of the chain.
194193

195-
- `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.
196-
197194
- `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.
198195

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

203200
- `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.
204201

205-
**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`.
202+
**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`.
206203

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

206+
**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.
207+
209208
#### Example value
210209

211210
```json
212211
{
213212
"specName": "westend",
214213
"implName": "parity-westend",
215-
"authoringVersion": 2,
216214
"specVersion": 9122,
217215
"implVersion": 0,
218216
"transactionVersion": 7,

0 commit comments

Comments
 (0)