Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = Config{ Size: 1000, Interval: 5 * time.Second, }
DefaultConfig is the default configuration
Functions ¶
This section is empty.
Types ¶
type ActionSync ¶
ActionSync implements the action syncer
func NewActionSync ¶
func NewActionSync(cfg Config, helper *Helper) *ActionSync
NewActionSync creates a new action syncer
func (*ActionSync) ReceiveAction ¶
func (as *ActionSync) ReceiveAction(_ context.Context, hash hash.Hash256)
ReceiveAction receives an action
func (*ActionSync) RequestAction ¶
func (as *ActionSync) RequestAction(_ context.Context, hash hash.Hash256)
RequestAction requests an action by hash
type Helper ¶
type Helper struct { P2PNeighbor Neighbors UnicastOutbound UniCastOutbound }
Helper is the helper for action syncer
Click to show internal directories.
Click to hide internal directories.