add additional assurances to `create_inherent` (#4349)
* minor: move checks into separate fn * add additional validity checks * simplify shuffling * Closes potential OOB weight * improve docs * fooo * remove obsolete comment * move filtering into the rollback-transaction Technically this is not necessary but avoids future footguns. * move check up and avoid duplicate checks * refactor: make sure backed candidates are sane, even more * doc wording Co-authored-by:Zeke Mostov <z.mostov@gmail.com> * refactor: avoid const generics for sake of wasm size `true` -> `FullCheck::Skip`, `false` -> `FullCheck::Yes`. * chore: unify `CandidateCheckContext` instance names * refactor: introduce `IndexedRetain` for `Vec<T>` * chore: make tests prefix free * doc: re-introduce removed comment * refactor: remove another const generic to save some wasm size Co-authored-by:
Zeke Mostov <z.mostov@gmail.com>
Showing
- polkadot/roadmap/implementers-guide/src/runtime/inclusion.md 3 additions, 2 deletionspolkadot/roadmap/implementers-guide/src/runtime/inclusion.md
- polkadot/runtime/parachains/src/inclusion.rs 116 additions, 57 deletionspolkadot/runtime/parachains/src/inclusion.rs
- polkadot/runtime/parachains/src/paras_inherent.rs 325 additions, 266 deletionspolkadot/runtime/parachains/src/paras_inherent.rs
Please register or sign in to comment