Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEndOfTime = errors.New("program time is suspiciously far in the future") ErrNoPendingBlocks = errors.New("no pending blocks") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface {
mempool.Mempool
// ResetBlockTimer schedules a timer to notify the consensus engine once
// there is a block ready to be built. If a block is ready to be built when
// this function is called, the engine will be notified directly.
ResetBlockTimer()
// BuildBlock is called on timer clock to attempt to create
// next block
BuildBlock(context.Context) (snowman.Block, error)
// Shutdown cleanly shuts Builder down
Shutdown()
}
Click to show internal directories.
Click to hide internal directories.