Documentation ¶
Overview ¶
Package producer implements Hubble block creation and producing.
Index ¶
- type Backend
- type Producer
- func (self *Producer) Pending() (*types.Block, *state.StateDB)
- func (self *Producer) PendingBlock() *types.Block
- func (self *Producer) Producing() bool
- func (self *Producer) SetCoinbase(addr common.Address)
- func (self *Producer) SetExtra(extra []byte) error
- func (self *Producer) Start(coinbase common.Address)
- func (self *Producer) Stop()
- type Result
- type Work
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { AccountManager() *accounts.Manager BlockChain() *core.BlockChain TxPool() *core.TxPool ChainDb() vntdb.Database }
Backend wraps all methods required for producing.
type Producer ¶
type Producer struct {
// contains filtered or unexported fields
}
Producer creates blocks and searches for proof-of-work values.
func (*Producer) PendingBlock ¶
PendingBlock returns the currently pending block.
Note, to access both the pending block and the pending state simultaneously, please use Pending(), as the pending state can change between multiple method calls
func (*Producer) SetCoinbase ¶
Click to show internal directories.
Click to hide internal directories.