register_validate_block!() { /* proc-macro */ }
Expand description

Register the validate_block function that is used by parachains to validate blocks on a validator.

Does nothing when std feature is enabled.

Expects as parameters the runtime, a block executor and an inherent checker.

Example

    struct BlockExecutor;
    struct Runtime;
    struct CheckInherents;

    cumulus_pallet_parachain_system::register_validate_block! {
        Runtime = Runtime,
        BlockExecutor = Executive,
        CheckInherents = CheckInherents,
    }