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 ¶
- Variables
- type ChainReader
- type Work
- func (env *Work) ConsensusTransactions(mux *event.TypeMux, txs []types.CoinSelfTransaction, ...) error
- func (env *Work) GetTxs() []types.CoinSelfTransaction
- func (env *Work) ProcessBroadcastTransactions(mux *event.TypeMux, txs []types.CoinSelfTransaction)
- func (env *Work) ProcessTransactions(mux *event.TypeMux, tp txPoolReader, upTime map[common.Address]uint64) (listret []*common.RetCallTxN, originalTxs []types.SelfTransaction)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
_, Abierr = abi.JSON(strings.NewReader(depositDef))
)
Functions ¶
This section is empty.
Types ¶
type ChainReader ¶
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 (*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)
Click to show internal directories.
Click to hide internal directories.