Commit 3540fc4
runtime: make the candidate relay parent progression check more strict (#5113)
Previously, we were checking if the relay parent of a new candidate does
not move backwards from the latest included on-chain candidate. This was
fine prior to elastic scaling. We now need to also check that the relay
parent progresses from the latest pending availability candidate, as
well as check the progression within the candidate chain in the inherent
data.
Prospective-parachains is already doing this check but we should also
add it in the runtime1 parent f690350 commit 3540fc4
4 files changed
Lines changed: 664 additions & 52 deletions
File tree
- polkadot/runtime/parachains/src
- inclusion
- paras_inherent
- prdoc/1.14.0
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
639 | 639 | | |
640 | 640 | | |
641 | 641 | | |
| 642 | + | |
| 643 | + | |
642 | 644 | | |
643 | 645 | | |
644 | 646 | | |
| |||
718 | 720 | | |
719 | 721 | | |
720 | 722 | | |
721 | | - | |
| 723 | + | |
722 | 724 | | |
723 | 725 | | |
724 | 726 | | |
| |||
728 | 730 | | |
729 | 731 | | |
730 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
731 | 743 | | |
732 | 744 | | |
733 | 745 | | |
| |||
797 | 809 | | |
798 | 810 | | |
799 | 811 | | |
800 | | - | |
| 812 | + | |
801 | 813 | | |
802 | 814 | | |
803 | 815 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1243 | 1243 | | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | | - | |
| 1246 | + | |
1247 | 1247 | | |
1248 | | - | |
1249 | | - | |
1250 | | - | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1254 | 1251 | | |
1255 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1256 | 1258 | | |
1257 | 1259 | | |
1258 | 1260 | | |
1259 | 1261 | | |
1260 | 1262 | | |
1261 | | - | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1262 | 1267 | | |
1263 | 1268 | | |
1264 | 1269 | | |
| |||
1277 | 1282 | | |
1278 | 1283 | | |
1279 | 1284 | | |
1280 | | - | |
1281 | | - | |
| 1285 | + | |
1282 | 1286 | | |
1283 | | - | |
| 1287 | + | |
1284 | 1288 | | |
1285 | 1289 | | |
1286 | 1290 | | |
1287 | 1291 | | |
1288 | | - | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
1289 | 1302 | | |
1290 | 1303 | | |
1291 | 1304 | | |
| |||
1296 | 1309 | | |
1297 | 1310 | | |
1298 | 1311 | | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | 1312 | | |
1305 | | - | |
1306 | | - | |
1307 | 1313 | | |
1308 | 1314 | | |
1309 | 1315 | | |
| |||
0 commit comments