Crate sp_blockchain

source ·
Expand description

Substrate blockchain traits and primitives.

Structs

Enums

Traits

  • Blockchain database backend. Does not perform any validation.
  • Handles stale forks.
  • Blockchain database header backend. Does not perform any validation.
  • Handles header metadata: hash, number, parent hash, etc.

Functions

  • Get lowest common ancestor between two blocks in the tree.
  • Compute a tree-route between two blocks. See tree-route docs for more details.

Type Definitions

  • Client Result type alias