Crate polkadot_node_primitives

source ·
Expand description

Primitive types used on the node-side.

Unlike the polkadot-primitives crate, these primitives are only used on the node-side, not shared between the node and the runtime. This crate builds on top of the primitives defined there.

Re-exports§

Modules§

Macros§

Structs§

Enums§

Constants§

  • How many blocks after finalization an information about backed/included candidate should be pre-loaded (when scraping onchain votes) and kept locally (when pruning).
  • It would be nice to draw this from the chain state, but we have no tools for it right now. On Polkadot this is 1 day, and on Kusama it’s 6 hours.
  • Linked to MAX_FINALITY_LAG in relay chain selection, MAX_HEADS_LOOK_BACK in approval-voting and MAX_BATCH_SCRAPE_ANCESTORS in dispute-coordinator
  • The current node version, which takes the basic SemVer form <major>.<minor>.<patch>. In general, minor should be bumped on every release while major or patch releases are relatively rare.
  • The bomb limit for decompressing PoV blobs.
  • The bomb limit for decompressing code blobs.

Functions§

Type Aliases§