qdrvm/kagome

[Feature Request]: Update Core::initialize_block

Closed this issue · 0 comments

Component

Runtime

Feature Description

Introduces breaking changes to the Core runtime API by letting Core::initialize_block return an enum:

fn initialize_block(header: &<Block as BlockT>::Header)
+  -> ExtrinsicInclusionMode;
enum ExtrinsicInclusionMode {
  /// All extrinsics are allowed in this block.
  AllExtrinsics,
  /// Only inherents are allowed in this block.
  OnlyInherents,
}

References and additional Information

https://polkadot-fellows.github.io/RFCs/approved/0013-prepare-blockbuilder-and-core-runtime-apis-for-mbms.html