miner

package
v0.7.10-broken Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2014 License: LGPL-2.1-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalTx

type LocalTx struct {
	To       []byte `json:"to"`
	Data     []byte `json:"data"`
	Gas      string `json:"gas"`
	GasPrice string `json:"gasPrice"`
	Value    string `json:"value"`
}

func (*LocalTx) Sign

func (self *LocalTx) Sign(key []byte) *types.Transaction

type Miner

type Miner struct {
	Coinbase []byte

	MinAcceptedGasPrice *big.Int
	// contains filtered or unexported fields
}

func New

func New(coinbase []byte, eth *eth.Ethereum) *Miner

func (*Miner) AddLocalTx

func (self *Miner) AddLocalTx(tx *LocalTx) int

func (*Miner) GetPow

func (self *Miner) GetPow() pow.PoW

func (*Miner) Mining

func (self *Miner) Mining() bool

func (*Miner) RemoveLocalTx

func (self *Miner) RemoveLocalTx(id int)

func (*Miner) Start

func (self *Miner) Start()

func (*Miner) Stop

func (self *Miner) Stop()

Jump to

Keyboard shortcuts

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