Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Run() TriggerBuild() HandleGenerateBlock() Done() // wait after stop }
type Manual ¶
type Manual struct {
// contains filtered or unexported fields
}
func (*Manual) HandleGenerateBlock ¶
func (*Manual) HandleGenerateBlock()
func (*Manual) TriggerBuild ¶
func (b *Manual) TriggerBuild()
type Time ¶
type Time struct {
// contains filtered or unexported fields
}
Time tells the engine when to build blocks and gossip transactions
func NewTime ¶
func NewTime(vm VM, cfg *TimeConfig) *Time
func (*Time) HandleGenerateBlock ¶
func (b *Time) HandleGenerateBlock()
HandleGenerateBlock should be called immediately after [BuildBlock]. [HandleGenerateBlock] invocation could lead to quiesence, building a block with some delay, or attempting to build another block immediately.
func (*Time) TriggerBuild ¶
func (b *Time) TriggerBuild()
type TimeConfig ¶
func DefaultTimeConfig ¶
func DefaultTimeConfig() *TimeConfig
Click to show internal directories.
Click to hide internal directories.