minerpool

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotLinearBlock  = errors.New("not a linear mining block")
	ErrInvalidLatest   = errors.New("invalid latest block")
	ErrInvalidChainID  = errors.New("invalid ChainID")
	ErrCreateBatch     = errors.New("create cvfs merger failed")
	ErrReadTxsTimeOut  = errors.New("read transaction list from IPFS dag timeout")
	ErrLinkCVFS        = errors.New("can not link to target CVFS")
	ErrCreateCVFSCache = errors.New("can not create cvfs cache(writer)")
)

Functions

This section is empty.

Types

type MinerPool

type MinerPool interface {
	PutTask(task *MiningTask) *MiningResult
}

func NewPool

func NewPool(ind *core.IpfsNode, chainID string, idxser AIndexes.IndexesServices, asd ASD.StatDaemon) MinerPool

type MiningResult

type MiningResult struct {
	Err error

	Batcher merger.CVFSMerger

	Task *MiningTask
}

type MiningTask

type MiningTask struct {
	MiningBlock *im.Block

	Txs []*im.Transaction

	VWriter VDB.CacheCVFS
}

func NewTask

func NewTask(block *im.Block) *MiningTask

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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