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 // StartBlockTimer starts to issue block creation requests to advance the // chain timestamp. StartBlockTimer() // ResetBlockTimer forces the block timer to recalculate when it should // advance the chain timestamp. ResetBlockTimer() // ShutdownBlockTimer stops block creation requests to advance the chain // timestamp. // // Invariant: Assumes the context lock is held when calling. ShutdownBlockTimer() // BuildBlock can be called to attempt to create a new block BuildBlock(context.Context) (snowman.Block, error) }
Click to show internal directories.
Click to hide internal directories.