blockstore

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockstoreAPI

type BlockstoreAPI struct {
	// contains filtered or unexported fields
}

type BlockstoreSubmodule

type BlockstoreSubmodule struct {
	// blockstore is the un-networked blocks interface
	Blockstore bstore.Blockstore

	// cborStore is a wrapper for a `cbor.IpldStore` that works on the local IPLD-Cbor objects stored in `blockstore`.
	CborStore cbor.IpldStore
}

BlockstoreSubmodule enhances the `Node` with local key/value storing capabilities.

TODO: split chain data from piece data (issue: https://github.com/filecoin-project/venus/issues/3481) 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() *BlockstoreAPI

Jump to

Keyboard shortcuts

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