Documentation ¶
Index ¶
- func WithMaxGuaranteeCount(maxGuaranteeCount uint) func(*Config)
- func WithMaxInterval(maxInterval time.Duration) func(*Config)
- func WithMaxReceiptCount(maxReceiptCount uint) func(*Config)
- func WithMaxSealCount(maxSealCount uint) func(*Config)
- func WithMinInterval(minInterval time.Duration) func(*Config)
- type Builder
- type Config
- type InsertableReceipts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithMaxGuaranteeCount ¶ added in v0.13.0
func WithMaxInterval ¶
func WithMaxReceiptCount ¶ added in v0.14.0
func WithMaxSealCount ¶
func WithMinInterval ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the builder for consensus block payloads. Upon providing a payload hash, it also memorizes which entities were included into the payload.
func NewBuilder ¶
func NewBuilder( metrics module.MempoolMetrics, db *badger.DB, state protocol.MutableState, headers storage.Headers, seals storage.Seals, index storage.Index, blocks storage.Blocks, resultsDB storage.ExecutionResults, guarPool mempool.Guarantees, sealPool mempool.IncorporatedResultSeals, recPool mempool.ExecutionTree, tracer module.Tracer, options ...func(*Config), ) *Builder
NewBuilder creates a new block builder.
func (*Builder) BuildOn ¶
func (b *Builder) BuildOn(parentID flow.Identifier, setter func(*flow.Header) error) (*flow.Header, error)
BuildOn creates a new block header on top of the provided parent, using the given view and applying the custom setter function to allow the caller to make changes to the header before storing it.
type InsertableReceipts ¶ added in v0.16.0
type InsertableReceipts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.