matrixwork

package
v0.0.0-...-c3c44a6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php

Index

Constants

This section is empty.

Variables

View Source
var (
	_, Abierr = abi.JSON(strings.NewReader(depositDef))
)

Functions

This section is empty.

Types

type ChainReader

type ChainReader interface {
	StateAt(root []common.CoinRoot) (*state.StateDBManage, error)
	GetBlockByHash(hash common.Hash) *types.Block
	Engine(version []byte) consensus.Engine
	GetHeader(common.Hash, uint64) *types.Header
	Processor(version []byte) core.Processor
}

type Work

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

	Block *types.Block // the new block

	Receipts []types.CoinReceipts
	// 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 ChainReader, gasPool *core.GasPool, header *types.Header) (*Work, error)

func (*Work) ConsensusTransactions

func (env *Work) ConsensusTransactions(mux *event.TypeMux, txs []types.CoinSelfTransaction, upTime map[common.Address]uint64) error

func (*Work) GetTxs

func (env *Work) GetTxs() []types.CoinSelfTransaction

func (*Work) ProcessBroadcastTransactions

func (env *Work) ProcessBroadcastTransactions(mux *event.TypeMux, txs []types.CoinSelfTransaction)

Broadcast

func (*Work) ProcessTransactions

func (env *Work) ProcessTransactions(mux *event.TypeMux, tp txPoolReader, upTime map[common.Address]uint64) (listret []*common.RetCallTxN, originalTxs []types.SelfTransaction)

Jump to

Keyboard shortcuts

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