Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DisabledScheduler ¶ added in v0.8.0
type DisabledScheduler struct { }
func (DisabledScheduler) Emits ¶ added in v0.8.0
func (d DisabledScheduler) Emits() []Emit
func (DisabledScheduler) Mine ¶ added in v0.8.0
func (d DisabledScheduler) Mine() chan Emit
func (DisabledScheduler) Reschedule ¶ added in v0.8.0
func (d DisabledScheduler) Reschedule()
type MinerConsensusImpl ¶ added in v0.5.0
type MinerConsensusImpl struct {
// contains filtered or unexported fields
}
func NewMinerConsensus ¶ added in v0.5.0
func NewMinerConsensus(c connectedCount, atLeastConnectedPeers int) MinerConsensusImpl
func (MinerConsensusImpl) IsMiningAllowed ¶ added in v0.5.0
func (a MinerConsensusImpl) IsMiningAllowed() bool
type SchedulerImpl ¶
type SchedulerImpl struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(state state.State, seeder seeder, settings *settings.BlockchainSettings, tm types.Time, consensus types.MinerConsensus, minerDelay proto.Timestamp) *SchedulerImpl
func (*SchedulerImpl) Emits ¶
func (a *SchedulerImpl) Emits() []Emit
func (*SchedulerImpl) Mine ¶
func (a *SchedulerImpl) Mine() chan Emit
func (*SchedulerImpl) Reschedule ¶
func (a *SchedulerImpl) Reschedule()
type StubConsensus ¶ added in v0.5.0
type StubConsensus struct { }
func (StubConsensus) IsMiningAllowed ¶ added in v0.5.0
func (s StubConsensus) IsMiningAllowed() bool
Click to show internal directories.
Click to hide internal directories.