matrixwork

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: MIT Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	State *state.StateDB // apply state changes here

	Block *types.Block // the new block

	Receipts []*types.Receipt
	// contains filtered or unexported fields
}

Work is the workers current environment and holds all of the current state information

func NewWork

func NewWork(config *params.ChainConfig, bc *core.BlockChain, gasPool *core.GasPool, header *types.Header) (*Work, error)

func (*Work) ConsensusTransactions

func (env *Work) ConsensusTransactions(mux *event.TypeMux, txs []*types.Transaction, bc *core.BlockChain) error

func (*Work) GetUpTimeAccounts

func (env *Work) GetUpTimeAccounts(num uint64) ([]common.Address, error)

func (*Work) GetUpTimeData

func (env *Work) GetUpTimeData(num uint64) (map[common.Address]uint32, map[common.Address][]byte, error)

func (*Work) HandleUpTime

func (env *Work) HandleUpTime(state *state.StateDB, accounts []common.Address, calltherollRspAccounts map[common.Address]uint32, heatBeatAccounts map[common.Address][]byte, blockNum uint64, bc *core.BlockChain) error

func (*Work) ProcessBroadcastTransactions

func (self *Work) ProcessBroadcastTransactions(mux *event.TypeMux, txs []*types.Transaction, bc *core.BlockChain)

Broadcast

func (*Work) ProcessTransactions

func (self *Work) ProcessTransactions(mux *event.TypeMux, tp *core.TxPool, bc *core.BlockChain) ([]uint32, []*types.Transaction)

Jump to

Keyboard shortcuts

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