Expand description
Substrate blockchain traits and primitives.
Structs§
- Block
Gap - Represents the block gap resulted by warp sync or fast sync.
- Cached
Header Metadata - Cached header metadata. Used to efficiently traverse the tree.
- Displaced
Leaves After Finalization - Result of
Backend::displaced_leaves_after_finalizing
. - Hash
AndNumber - Hash and number of a block.
- Header
Metadata Cache - Caches header metadata in an in-memory LRU cache.
- Info
- Blockchain info
- Tree
Route - A tree-route from one block to another in the chain.
Enums§
- Apply
Extrinsic Failed - Error when the runtime failed to apply an extrinsic.
- Block
GapType - Represents the type of block gaps that may result from either warp sync or fast sync.
- Block
Status - Block status.
- Error
- Substrate Client error
Traits§
- Backend
- Blockchain database backend. Does not perform any validation.
- Fork
Backend - Handles stale forks.
- Header
Backend - Blockchain database header backend. Does not perform any validation.
- Header
Metadata - Handles header metadata: hash, number, parent hash, etc.
Functions§
- lowest_
common_ ancestor - Get the lowest common ancestor between two blocks in the tree.
- tree_
route - Compute a tree-route between two blocks. See tree-route docs for more details.
Type Aliases§
- Result
- Client Result type alias