Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockConfirmationManager ¶
type BlockConfirmationManager struct { Database *db.Database Node *nodeapi.Node Context context.Context ContextCancelFunc context.CancelFunc // contains filtered or unexported fields }
BlockConfirmationManager is a daemon that confirms blocks by verifying its type (block/uncle/orphan)
func NewBlockConfirmationManager ¶
func NewBlockConfirmationManager(database *db.Database, engineWaitGroup *sync.WaitGroup, node *nodeapi.Node, confirmationsRequired uint64) *BlockConfirmationManager
NewBlockConfirmationManager creates a new BlockConfirmationManager instance
func (*BlockConfirmationManager) Run ¶
func (b *BlockConfirmationManager) Run()
Run function runs the BlockConfirmationManager
func (*BlockConfirmationManager) Stop ¶
func (b *BlockConfirmationManager) Stop()
Stop function stops the BlockConfirmationManager
type Collector ¶
type Collector struct { // map[<worker-name>]PendingStat PendingStats map[string]PendingStat Database *db.Database Context context.Context ContextCancelFunc context.CancelFunc Mux sync.Mutex // contains filtered or unexported fields }
Collector is a stat collection daemon struct
func NewCollector ¶
func NewCollector(database *db.Database, engineWaitGroup *sync.WaitGroup, shareDifficulty uint64) *Collector
NewCollector creates a new Stats Collector
type PendingStat ¶
PendingStat is a pending Stat struct
Click to show internal directories.
Click to hide internal directories.