Adds support for returning a custom header from `validate_block` (#825)
* Adds support for returning a custom header from `validate_block` This adds support for returning a custom header from `validate_block`. Before this, we always returned the header of the block that was validated (and still do it by default). However, after this pr it is possible to set a custom header or better custom head data that will be returned instead from `validate_block`. This can be for example when a chain wants to fork. * FMT
Showing
- cumulus/pallets/parachain-system/src/lib.rs 31 additions, 3 deletionscumulus/pallets/parachain-system/src/lib.rs
- cumulus/pallets/parachain-system/src/validate_block/implementation.rs 7 additions, 0 deletions...ets/parachain-system/src/validate_block/implementation.rs
- cumulus/pallets/parachain-system/src/validate_block/tests.rs 51 additions, 4 deletionscumulus/pallets/parachain-system/src/validate_block/tests.rs
- cumulus/test/client/src/lib.rs 4 additions, 1 deletioncumulus/test/client/src/lib.rs
- cumulus/test/runtime/src/lib.rs 12 additions, 8 deletionscumulus/test/runtime/src/lib.rs
- cumulus/test/runtime/src/test_pallet.rs 49 additions, 0 deletionscumulus/test/runtime/src/test_pallet.rs
- cumulus/test/service/benches/transaction_throughput.rs 1 addition, 1 deletioncumulus/test/service/benches/transaction_throughput.rs
- cumulus/test/service/src/chain_spec.rs 1 addition, 0 deletionscumulus/test/service/src/chain_spec.rs
Please register or sign in to comment