Change the way we store, handle and validate the validation data (#342)

Currently validation data is shared by using a well known key between
the parachain system pallet and the validate block implementation. This
pr changes this by passing the parachain system directly to the validate
block implementation to make use of it. Besides that, we also store the
validation params in some thread local variable to make it inspectable
by parachain system. This moves the validation of validation data and
validation params to the parachain system pallet directly, instead of
having this hidden inside the validate block implementation.

Fixes: https://github.com/paritytech/cumulus/issues/217
This commit is contained in:
Bastian Köcher
2021-02-27 18:46:25 +01:00
committed by GitHub
parent 9535ee26ab
commit f511757069
9 changed files with 152 additions and 247 deletions
+1 -1
View File
@@ -415,4 +415,4 @@ impl_runtime_apis! {
}
}
cumulus_pallet_parachain_system::register_validate_block!(Block, Executive);
cumulus_pallet_parachain_system::register_validate_block!(Runtime, Executive);