Documentation ¶
Index ¶
- Constants
- type Config
- type SoloEngine
- func (solo *SoloEngine) Address() common.Address
- func (solo *SoloEngine) Finalize(header *types.Header, state *state.StateDB, txs types.Transactions, ...) (*types.Block, error)
- func (solo *SoloEngine) Protocols() []common.Protocol
- func (solo *SoloEngine) Start() error
- func (solo *SoloEngine) Stop() error
Constants ¶
View Source
const ( BP = iota // block producer NBP // not block producer REMOVE_THRESHOLD = 65535 // height threshold of clearing block pool )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoloEngine ¶
type SoloEngine struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *common.Config, state *state.StateDB, chain chain.Blockchain) (*SoloEngine, error)
func (*SoloEngine) Address ¶
func (solo *SoloEngine) Address() common.Address
func (*SoloEngine) Protocols ¶
func (solo *SoloEngine) Protocols() []common.Protocol
func (*SoloEngine) Start ¶
func (solo *SoloEngine) Start() error
func (*SoloEngine) Stop ¶
func (solo *SoloEngine) Stop() error
Click to show internal directories.
Click to hide internal directories.