Commit ee803b7
runtime: remove ttl (#5461)
Resolves #4776
This will enable proper core-sharing between paras, even if one of them
is not producing blocks.
TODO:
- [x] duplicate first entry in the claim queue if the queue used to be
empty
- [x] don't back anything if at the end of the block there'll be a
session change
- [x] write migration for removing the availability core storage
- [x] update and write unit tests
- [x] prdoc
- [x] add zombienet test for synchronous backing
- [x] add zombienet test for core-sharing paras where one of them is not
producing any blocks
_Important note:_
The `ttl` and `max_availability_timeouts` fields of the
HostConfiguration are not removed in this PR, due to #64.
Adding the workaround with the storage version check for every use of
the active HostConfiguration in all runtime APIs would be insane, as
it's used in almost all runtime APIs.
So even though the ttl and max_availability_timeouts fields will now be
unused, they will remain part of the host configuration.
These will be removed in a separate PR once #64 is fixed. Tracked by
#6067
---------
Signed-off-by: Andrei Sandu <[email protected]>
Co-authored-by: Andrei Sandu <[email protected]>
Co-authored-by: Andrei Sandu <[email protected]>
Co-authored-by: command-bot <>1 parent 225536c commit ee803b7
File tree
41 files changed
+1510
-1967
lines changed- .gitlab/pipeline/zombienet
- polkadot
- primitives/src/v8
- runtime
- parachains/src
- assigner_coretime
- assigner_parachains
- configuration
- migration
- coretime
- inclusion
- on_demand
- paras_inherent
- runtime_api_impl
- scheduler
- rococo/src
- weights
- test-runtime/src
- westend/src
- weights
- zombienet_tests/functional
- prdoc
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+1510
-1967
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
236 | 255 | | |
237 | 256 | | |
238 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2093 | 2093 | | |
2094 | 2094 | | |
2095 | 2095 | | |
2096 | | - | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
2097 | 2099 | | |
2098 | 2100 | | |
2099 | 2101 | | |
| |||
2104 | 2106 | | |
2105 | 2107 | | |
2106 | 2108 | | |
2107 | | - | |
2108 | | - | |
2109 | | - | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
2110 | 2112 | | |
2111 | 2113 | | |
2112 | 2114 | | |
2113 | 2115 | | |
| 2116 | + | |
2114 | 2117 | | |
2115 | 2118 | | |
2116 | 2119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
324 | 327 | | |
325 | 328 | | |
326 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 66 | + | |
69 | 67 | | |
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | | - | |
| 73 | + | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
138 | 141 | | |
139 | 142 | | |
140 | 143 | | |
141 | | - | |
142 | | - | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | 325 | | |
333 | 326 | | |
334 | 327 | | |
| |||
340 | 333 | | |
341 | 334 | | |
342 | 335 | | |
343 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
344 | 340 | | |
345 | 341 | | |
346 | | - | |
| 342 | + | |
347 | 343 | | |
348 | 344 | | |
349 | 345 | | |
| |||
356 | 352 | | |
357 | 353 | | |
358 | 354 | | |
359 | | - | |
| 355 | + | |
360 | 356 | | |
361 | 357 | | |
362 | 358 | | |
| |||
373 | 369 | | |
374 | 370 | | |
375 | 371 | | |
| 372 | + | |
376 | 373 | | |
377 | 374 | | |
378 | 375 | | |
| |||
381 | 378 | | |
382 | 379 | | |
383 | 380 | | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
393 | 391 | | |
394 | 392 | | |
395 | 393 | | |
| |||
416 | 414 | | |
417 | 415 | | |
418 | 416 | | |
| 417 | + | |
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
| |||
886 | 885 | | |
887 | 886 | | |
888 | 887 | | |
889 | | - | |
890 | 888 | | |
891 | 889 | | |
892 | 890 | | |
893 | 891 | | |
894 | | - | |
895 | | - | |
896 | | - | |
| 892 | + | |
897 | 893 | | |
898 | 894 | | |
899 | 895 | | |
| |||
902 | 898 | | |
903 | 899 | | |
904 | 900 | | |
905 | | - | |
| 901 | + | |
906 | 902 | | |
907 | 903 | | |
908 | 904 | | |
| |||
930 | 926 | | |
931 | 927 | | |
932 | 928 | | |
933 | | - | |
934 | | - | |
935 | | - | |
936 | | - | |
937 | | - | |
| 929 | + | |
| 930 | + | |
938 | 931 | | |
939 | 932 | | |
940 | | - | |
941 | | - | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
942 | 940 | | |
943 | 941 | | |
944 | 942 | | |
945 | 943 | | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
| 944 | + | |
953 | 945 | | |
954 | | - | |
| 946 | + | |
955 | 947 | | |
956 | | - | |
| 948 | + | |
957 | 949 | | |
958 | | - | |
| 950 | + | |
959 | 951 | | |
960 | | - | |
| 952 | + | |
961 | 953 | | |
962 | | - | |
| 954 | + | |
963 | 955 | | |
964 | 956 | | |
965 | 957 | | |
966 | 958 | | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
985 | | - | |
986 | | - | |
987 | | - | |
988 | | - | |
989 | | - | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
990 | 971 | | |
991 | | - | |
992 | | - | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
993 | 980 | | |
994 | 981 | | |
995 | 982 | | |
| |||
0 commit comments