Documentation ¶
Overview ¶
Package miner is responsible for creating valid blocks that contain valid activation transactions and transactions
Index ¶
- func ActiveSetFromEpochFirstBlock(db sql.Executor, epoch types.EpochID) ([]types.ATXID, error)
- type Opt
- func WithHdist(dist uint32) Opt
- func WithLayerPerEpoch(layers uint32) Opt
- func WithLayerSize(size uint32) Opt
- func WithLogger(logger log.Log) Opt
- func WithMinGoodAtxPercent(percent int) Opt
- func WithMinimalActiveSetWeight(weight []types.EpochMinimalActiveWeight) Opt
- func WithNetworkDelay(delay time.Duration) Opt
- func WithSigners(signers ...*signing.EdSigner) Opt
- func WithWorkersLimit(limit int) Opt
- type ProposalBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Opt ¶ added in v1.0.0
type Opt func(h *ProposalBuilder)
Opt for configuring ProposalBuilder.
func WithLayerPerEpoch ¶ added in v1.0.0
WithLayerPerEpoch defines the number of layers per epoch.
func WithLayerSize ¶ added in v1.0.0
WithLayerSize defines the average number of proposal per layer.
func WithLogger ¶ added in v1.0.0
WithLogger defines the logger.
func WithMinGoodAtxPercent ¶ added in v1.2.2
func WithMinimalActiveSetWeight ¶ added in v1.0.0
func WithMinimalActiveSetWeight(weight []types.EpochMinimalActiveWeight) Opt
func WithNetworkDelay ¶ added in v1.0.7
func WithSigners ¶ added in v1.3.0
WithSigners guarantees that builder will start execution with provided list of signers. Should be after logging.
func WithWorkersLimit ¶ added in v1.3.0
WithWorkersLimit configures paralelization factor for builder operation when working with more than one signer.
type ProposalBuilder ¶ added in v1.0.0
type ProposalBuilder struct {
// contains filtered or unexported fields
}
ProposalBuilder builds Proposals for a miner.
func New ¶ added in v1.2.2
func New( clock layerClock, cdb *datastore.CachedDB, publisher pubsub.Publisher, trtl votesEncoder, syncer system.SyncStateProvider, conState conservativeState, opts ...Opt, ) *ProposalBuilder
New creates a struct of block builder type.
func (*ProposalBuilder) Register ¶ added in v1.3.0
func (pb *ProposalBuilder) Register(signer *signing.EdSigner)
Click to show internal directories.
Click to hide internal directories.