Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manual ¶
type Manual struct {
// contains filtered or unexported fields
}
func (*Manual) HandleAppGossip ¶
type Proposer ¶
type Proposer struct {
// contains filtered or unexported fields
}
func NewProposer ¶
func NewProposer(vm VM, cfg *ProposerConfig) *Proposer
func (*Proposer) HandleAppGossip ¶
type ProposerConfig ¶
type ProposerConfig struct { GossipProposerDiff int GossipProposerDepth int GossipInterval time.Duration GossipPeerCacheSize int GossipMinLife int64 // seconds BuildProposerDiff int }
func DefaultProposerConfig ¶
func DefaultProposerConfig() *ProposerConfig
type VM ¶
type VM interface { ChainID() ids.ID StopChan() chan struct{} Tracer() trace.Tracer Mempool() chain.Mempool Proposers(ctx context.Context, diff int, depth int) (set.Set[ids.NodeID], error) IsValidator(context.Context, ids.NodeID) (bool, error) Logger() logging.Logger PreferredBlock(context.Context) (*chain.StatelessBlock, error) Registry() (chain.ActionRegistry, chain.AuthRegistry) NodeID() ids.NodeID Rules(int64) chain.Rules Submit(ctx context.Context, verify bool, txs []*chain.Transaction) []error }
Click to show internal directories.
Click to hide internal directories.