Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockstoreSubmodule ¶
type BlockstoreSubmodule struct { // blockstore is the un-networked blocks interface Blockstore bstore.Blockstore }
BlockstoreSubmodule enhances the `Node` with local key/value storing capabilities. Note: at present: - `blockstore` is shared by chain/graphsync and piece/bitswap data - `cborStore` is used for chain state and shared with piece data exchange for deals at the moment.
func NewBlockstoreSubmodule ¶
func NewBlockstoreSubmodule(ctx context.Context, repo blockstoreRepo) (*BlockstoreSubmodule, error)
NewBlockstoreSubmodule creates a new block store submodule.
func (*BlockstoreSubmodule) API ¶
func (bsm *BlockstoreSubmodule) API() v0api.IBlockStore
func (*BlockstoreSubmodule) V0API ¶ added in v0.9.7
func (bsm *BlockstoreSubmodule) V0API() v0api.IBlockStore
Click to show internal directories.
Click to hide internal directories.