miner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: LGPL-3.0 Imports: 23 Imported by: 2

Documentation

Overview

Package miner contains implementations for block mining strategy.

Package miner contains implementations for block mining strategy.

Package miner contains implementations for block mining strategy.

Package miner contains implementations for block mining strategy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Miner

type Miner interface {
	// Start begins the miner loop.
	Start()

	// Stop terminates the miner loop.
	Stop()

	Close()

	GetCoinbase() common.Address

	SetCoinbase(coinbase common.Address)

	IsMining() bool

	SubscribeNewMinedBlockEvent(ch chan<- types.NewMinedBlockEvent) event.Subscription
}

func NewFtlMiner

func NewFtlMiner(blockChain blockChain, executor txexec.TxExecutor, txPool pool.Pool, pkgPool pool.Pool, keyman *keys.MiningKeyManager) Miner

func NewSimMiner

func NewSimMiner(difficulty *big.Int, greedy uint8, rounds uint64, useHeight bool, blockChain blockChain) Miner

Jump to

Keyboard shortcuts

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