miner

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoOpMiner

func NoOpMiner() noOpMiner

func Run

Types

type Constraints

type Constraints struct {
	MaxScriptRunsInBlock        int
	MaxScriptsComplexityInBlock int
	ClassicAmountOfTxsInBlock   int
	MaxTxsSizeInBytes           int
}

func DefaultConstraints

func DefaultConstraints() Constraints

type DefaultMiner

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

func NewDefaultMiner

func NewDefaultMiner(services services.Services) *DefaultMiner

func (*DefaultMiner) Interrupt

func (a *DefaultMiner) Interrupt()

func (*DefaultMiner) Mine

func (a *DefaultMiner) Mine(ctx context.Context, t proto.Timestamp, k proto.KeyPair, parent crypto.Signature, baseTarget consensus.BaseTarget, GenSignature crypto.Digest)

type MicroblockMiner

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

func NewMicroblockMiner

func NewMicroblockMiner(services services.Services, ngRuntime ng.Runtime, scheme proto.Scheme) *MicroblockMiner

func (*MicroblockMiner) Interrupt

func (a *MicroblockMiner) Interrupt()

func (*MicroblockMiner) Mine

func (a *MicroblockMiner) Mine(ctx context.Context, t proto.Timestamp, k proto.KeyPair, parent crypto.Signature, baseTarget consensus.BaseTarget, GenSignature crypto.Digest)

type Miner

type Miner interface {
	Mine(ctx context.Context, t proto.Timestamp, k proto.KeyPair, parent crypto.Signature, baseTarget consensus.BaseTarget, GenSignature crypto.Digest)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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