• Bastian Köcher's avatar
    Change the way we store, handle and validate the validation data (#342) · d6bc185e
    Bastian Köcher authored
    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
    d6bc185e