Documentation ¶
Index ¶
- type API
- type Miner
- func (miner *Miner) APIs(chain consensus.IChainReader) []rpc.API
- func (miner *Miner) Mining() bool
- func (miner *Miner) SetCoinbase(name string, privKeys []string) error
- func (miner *Miner) SetDelayDuration(delayDuration uint64) error
- func (miner *Miner) SetExtra(extra []byte) error
- func (miner *Miner) Start(force bool) bool
- func (miner *Miner) Stop() bool
- type Work
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API exposes dpos related methods for the RPC interface.
type Miner ¶
type Miner struct {
// contains filtered or unexported fields
}
Miner creates blocks and searches for proof values.
func (*Miner) SetCoinbase ¶
SetCoinbase coinbase name & private key
func (*Miner) SetDelayDuration ¶ added in v0.0.18
type Worker ¶
type Worker struct { consensus.IConsensus // contains filtered or unexported fields }
Worker is the main object which takes care of applying messages to the new state
Click to show internal directories.
Click to hide internal directories.