chain

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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const AChainMapKey = "AChainMapKey"

Variables

View Source
var (
	ErrAlreadyExistConnected   = errors.New("chan already exist connected")
	ErrCantLinkToChainExpected = errors.New("not found chain in Aya")
	ErrMergeFailed             = errors.New("CVFS merge failed")
	ErrMergeInvalidChainID     = errors.New("invalid chain id")
	ErrMergeInvalidLatest      = errors.New("invalid latest block")
	ErrMergeNonlinear          = errors.New("nonlinear merge batch ")
)

Functions

func AddChain

func AddChain(genBlock *im.GenBlock, ind *core.IpfsNode, r bool) error

func Conn

func Conn(ctx context.Context, chainId string, ind *core.IpfsNode, acc EAccount.Account) error

func DisconnectionAll

func DisconnectionAll()

func GenBlocksMap

func GenBlocksMap(ind *core.IpfsNode) (map[string]*im.GenBlock, error)

func ReadMergeFromCID

func ReadMergeFromCID(ctx context.Context, ind *core.IpfsNode, c cid.Cid) VDBMerge.CVFSMerger

Types

type Chain

type Chain interface {
	Disconnect()

	CVFServices() vdb.CVFS

	GetTxPool() txpool.TxPool
}

func GetChainByIdentifier

func GetChainByIdentifier(chainId string) Chain

Directories

Path Synopsis
tx

Jump to

Keyboard shortcuts

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