Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockBuilderMetricsWrapper ¶
type BlockBuilderMetricsWrapper struct {
// contains filtered or unexported fields
}
BlockBuilderMetricsWrapper implements the module.Builder interface. It wraps a module.Builder instance and measures the time which HotStuff's core logic spends in the module.Builder component, i.e. the with generating block payloads. The measured time durations are reported as values for the PayloadProductionDuration metric.
func NewMetricsWrapper ¶
func NewMetricsWrapper(builder module.Builder, metrics module.HotstuffMetrics) *BlockBuilderMetricsWrapper
type BlockProducer ¶
type BlockProducer struct {
// contains filtered or unexported fields
}
BlockProducer is responsible for producing new block proposals
func New ¶
func New(signer hotstuff.Signer, committee hotstuff.Committee, builder module.Builder) (*BlockProducer, error)
New creates a new BlockProducer which wraps the chain compliance layer block builder to provide hotstuff with block proposals.
func (*BlockProducer) MakeBlockProposal ¶
func (bp *BlockProducer) MakeBlockProposal(qc *flow.QuorumCertificate, view uint64) (*model.Proposal, error)
MakeBlockProposal will build a proposal for the given view with the given QC
Click to show internal directories.
Click to hide internal directories.