Module forest_filecoin::chain::store::chain_store
source · Modules§
Structs§
- Stores chain data such as heaviest tipset and cached tipset info at each epoch. This structure is thread-safe, and all caches are wrapped in a mutex to allow a consistent
ChainStore
to be shared across tasks.
Enums§
Enum
forpubsub
channel that defines message type variant and data contained in message type.
Constants§
- SINK_CAP 🔒
Functions§
- Returns a Tuple of BLS messages of type
UnsignedMessage
and SECP messages of typeSignedMessage
- Returns a tuple of
UnsignedMessage
andSignedMessages
from their CID - Attempts to de-serialize to unsigned message or signed message and then returns it as a
ChainMessage
. - Returns parent message receipt given
block_header
and message index. - Returns message from key-value store based on a
Cid
. - Given a tipset this function will return all unique messages in that tipset.
- Returns messages from key-value store based on a slice of
Cid
s. - Persists slice of
serializable
objects toblockstore
. - Returns a vector of CIDs from provided root CID
- Returns a tuple of CIDs for both unsigned and signed messages
Type Aliases§
- Disambiguate the type to signify that we are expecting a delta and not an actual epoch/height while maintaining the same type.