block

package
v0.0.0-...-168a7d3 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Genesis = 0
	Latest  = ^uint64(0)

	BlockNameLatest = "latest"
	BlockNameGen    = "genesis"
)
View Source
const DBPath = "/blocks"
View Source
const MessagePrefix = byte('b')

Variables

View Source
var (
	LatestPosBlockIdxKey = []byte("LatestPosBlockIndex")
	ErrBlockNotFound     = errors.New("can not found block")
)

Functions

func ConfirmBlock

func ConfirmBlock(block *im.Block, extCid cid.Cid) *im.Block

func GetBlocks

func GetBlocks(ind *core.IpfsNode, c ...cid.Cid) ([]*im.Block, error)

Types

type MergeWriter

type MergeWriter interface {
	AVdbComm.VDBCacheServices
	// contains filtered or unexported methods
}

type Services

type Services interface {
	AVdbComm.VDBSerices
	// contains filtered or unexported methods
}

func CreateServices

func CreateServices(ind *core.IpfsNode, idxServices indexes.IndexesServices) Services

Jump to

Keyboard shortcuts

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