Unverified Commit 0609dc74 authored by Bernhard Schuster's avatar Bernhard Schuster Committed by GitHub
Browse files

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: default avatarZeke 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: default avatarZeke Mostov <z.mostov@gmail.com>
parent 8cd96d9f
Pipeline #167795 canceled with stages
in 1 minute and 43 seconds