referrerpolicy=no-referrer-when-downgrade

Crate parachains_common

source ·

Re-exports§

Modules§

  • Auxiliary struct/enums for parachain runtimes. Taken from polkadot/runtime/common (at a21cd64) and adapted for parachains.
  • Helpers to deal with configuring the message queue in the runtime.
  • Opaque types. These are used by the CLI to instantiate machinery that don’t need to know the specifics of the runtime. They can then be made to be agnostic over specific formats of data like extrinsics, allowing for them to continue syncing the network through upgrades to even the core data structures.

Constants§

  • We assume that ~5% of the block weight is consumed by on_initialize handlers. This is used to limit the maximal weight of a single extrinsic.
  • We allow for 0.5 seconds of compute with a 6 second average block time.
  • This determines the average expected block time that we are targeting. Blocks will be produced at a minimum duration defined by SLOT_DURATION. SLOT_DURATION is picked up by pallet_timestamp which is in turn picked up by pallet_aura to implement fn slot_duration().
  • We allow Normal extrinsics to fill up the block up to 75%, the rest can be used by Operational extrinsics.
  • Treasury pallet id of the local chain, used to convert into AccountId

Type Aliases§