Documentation ¶
Index ¶
Constants ¶
View Source
const MinSkipNewProposalsThreshold = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // SkipNewProposalsThreshold defines the threshold for dropping blocks that are too far in // the future. Formally, let `H` be the view of the latest finalized block known to this // node. A new block `B` is dropped without further processing, if // B.View > H + SkipNewProposalsThreshold 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.
Click to show internal directories.
Click to hide internal directories.