miner

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcGasLimit

func CalcGasLimit(parentGasLimit, desiredLimit uint64) uint64

Types

type Miner

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

func NewMiner

func NewMiner(ctx context.Context, cfg *conf.Config, bc common.IBlockChain, engine consensus.Engine, txsPool common.ITxsPool, isLocalBlock func(header *block.Header) bool) *Miner

func (*Miner) Close added in v0.1.2

func (miner *Miner) Close()

func (*Miner) Mining

func (m *Miner) Mining() bool

func (*Miner) PendingBlockAndReceipts

func (m *Miner) PendingBlockAndReceipts() (block.IBlock, block.Receipts)

func (*Miner) SetCoinbase

func (m *Miner) SetCoinbase(addr types.Address)

func (*Miner) Start

func (m *Miner) Start()

Jump to

Keyboard shortcuts

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