Skip to content
  • Bastian Köcher's avatar
    Move `create_inherents` into the block-builder (#6553) · b3fdde65
    Bastian Köcher authored
    
    
    * Move `create_inherents` into the block-builder
    
    This moves the `create_inherents` call into the block-builder. This has
    the advantage that `create_inherents` will be able to reuse the same
    context that will be used when applying the extrinsics and we also save
    one call to `on_initialize`. To make sure that `create_inherents` does
    not modify any state, we execute it in a transaction that is
    rolled-back after doing the runtime call.
    
    * Feedback and build fix
    
    * Update primitives/runtime/src/lib.rs
    
    Co-authored-by: default avatarSergei Shulepov <[email protected]>
    
    * Update client/block-builder/src/lib.rs
    
    Co-authored-by: default avatarSergei Shulepov <[email protected]>
    b3fdde65