poolManager

package
v0.0.0-...-07a8cb0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	DaemonManager *daemonManager.DaemonManager
	JobManager    *jobManager.JobManager
	P2PManager    *p2pManager.Peer

	StratumServer *stratum.Server

	Options                    *config.Options
	Magnitude                  uint64
	CoinPrecision              int
	HasGetInfo                 bool
	Stats                      *Stats
	BlockPollingIntervalTicker *time.Ticker
	Recipients                 []*config.Recipient
	ProtocolVersion            int
	APIServer                  *api.Server
}

func NewPool

func NewPool(options *config.Options) *Pool

func (*Pool) AttachMiners

func (p *Pool) AttachMiners(miners []*stratum.Client)

func (*Pool) CheckAllSynced

func (p *Pool) CheckAllSynced() bool

func (*Pool) DetectCoinData

func (p *Pool) DetectCoinData()

enrich the config options from rpc

func (*Pool) Init

func (p *Pool) Init()

func (*Pool) OutputPoolInfo

func (p *Pool) OutputPoolInfo()

func (*Pool) SetupBlockPolling

func (p *Pool) SetupBlockPolling()

func (*Pool) SetupP2PBlockNotify

func (p *Pool) SetupP2PBlockNotify()

func (*Pool) StartStratumServer

func (p *Pool) StartStratumServer()

type Stats

type Stats struct {
	Connections     int
	Difficulty      float64
	NetworkHashrate float64
	StratumPorts    []int
}

func NewStats

func NewStats() *Stats

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL