blockstore

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: Apache-2.0, MIT Imports: 14 Imported by: 0

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 blockstoreutil.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 (*BlockstoreSubmodule) V0API added in v0.9.7

func (bsm *BlockstoreSubmodule) V0API() v0api.IBlockStore

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL