Documentation
¶
Index ¶
- type Work
- func (env *Work) ConsensusTransactions(mux *event.TypeMux, txs []*types.Transaction, bc *core.BlockChain) error
- func (env *Work) GetUpTimeAccounts(num uint64) ([]common.Address, error)
- func (env *Work) GetUpTimeData(num uint64) (map[common.Address]uint32, map[common.Address][]byte, error)
- func (env *Work) HandleUpTime(state *state.StateDB, accounts []common.Address, ...) error
- func (self *Work) ProcessBroadcastTransactions(mux *event.TypeMux, txs []*types.Transaction, bc *core.BlockChain)
- func (self *Work) ProcessTransactions(mux *event.TypeMux, tp *core.TxPool, bc *core.BlockChain) ([]uint32, []*types.Transaction)
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 (*Work) GetUpTimeData ¶
func (*Work) HandleUpTime ¶
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)
Click to show internal directories.
Click to hide internal directories.