Documentation
¶
Index ¶
Constants ¶
const MinSkipNewProposalsThreshold = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// SkipNewProposalsThreshold defines the threshold where, if we observe a new
// proposal which is this far behind our local latest finalized, we drop the
// proposal rather than cache it.
SkipNewProposalsThreshold uint64
}
Config is shared config for consensus and collection compliance engines, and the consensus follower engine.
func DefaultConfig ¶
func DefaultConfig() Config
type Opt ¶
type Opt func(*Config)
func WithSkipNewProposalsThreshold ¶
WithSkipNewProposalsThreshold returns an option to set the skip new proposals threshold. For inputs less than the minimum threshold, the minimum threshold will be set instead.