Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler to schedule the time when a proposer to produce a block.
func NewScheduler ¶
func NewScheduler( addr thor.Address, proposers []Proposer, parentBlockNumber uint32, parentBlockTime uint64) (*Scheduler, error)
NewScheduler create a Scheduler object. `addr` is the proposer to be scheduled. If `addr` is not listed in `proposers`, an error returned.
Click to show internal directories.
Click to hide internal directories.