[−][src]Crate sp_blockchain
Substrate blockchain traits and primitives.
Modules
well_known_cache_keys | A list of all well known keys in the blockchain cache. |
Structs
CachedHeaderMetadata | Cached header metadata. Used to efficiently traverse the tree. |
HashAndNumber | Hash and number of a block. |
HeaderMetadataCache | Caches header metadata in an in-memory LRU cache. |
Info | Blockchain info |
TreeRoute | A tree-route from one block to another in the chain. |
Enums
ApplyExtrinsicFailed | Error when the runtime failed to apply an extrinsic. |
BlockStatus | Block status. |
Error | Substrate Client error |
Traits
Backend | Blockchain database backend. Does not perform any validation. |
Cache | Blockchain optional data cache. |
HeaderBackend | Blockchain database header backend. Does not perform any validation. |
HeaderMetadata | Handles header metadata: hash, number, parent hash, etc. |
ProvideCache | Provides access to the optional cache. |
Functions
lowest_common_ancestor | Get 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 Definitions
Result | Client Result type alias |