ethminer

package
v0.0.0-...-c598841 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: BSD-4-Clause, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SmartPool *protocol.SmartPool

Functions

This section is empty.

Types

type Error

type Error interface {
	Error() string  // returns the message
	ErrorCode() int // returns the code
}

type RPCService

type RPCService struct{}

func NewRPCService

func NewRPCService() *RPCService

func (*RPCService) ServeHTTP

func (server *RPCService) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Server

type Server struct {
	Port uint16
	// contains filtered or unexported fields
}

func NewServer

func NewServer(output smartpool.UserOutput, port uint16) *Server

func (*Server) Start

func (s *Server) Start()

type SmartPoolService

type SmartPoolService struct {
	// contains filtered or unexported fields
}

func NewSmartPoolService

func NewSmartPoolService(rigName string) *SmartPoolService

func (*SmartPoolService) GetWork

func (sps *SmartPoolService) GetWork() ([3]string, error)

func (*SmartPoolService) SubmitHashrate

func (sps *SmartPoolService) SubmitHashrate(hashrate hexutil.Uint64, id common.Hash) bool

func (*SmartPoolService) SubmitWork

func (sps *SmartPoolService) SubmitWork(nonce types.BlockNonce, hash, mixDigest common.Hash) bool

type StatService

type StatService struct{}

func NewStatService

func NewStatService() *StatService

func (*StatService) ServeHTTP

func (server *StatService) ServeHTTP(w http.ResponseWriter, r *http.Request)

type StatusData

type StatusData struct {
	RPCEndpoint    string   `json:"rpc_endpoint"`
	ShareThreshold int      `json:"share_threshold"`
	ShareDiff      *big.Int `json:"share_difficulty"`
	Contract       string   `json:"contract_address"`
	Miner          string   `json:"miner_address"`
	Extra          string   `json:"extra_data"`
	HotStop        bool     `json:"hotstop_mode"`
}

type StatusService

type StatusService struct{}

func NewStatusService

func NewStatusService() *StatusService

func (*StatusService) ServeHTTP

func (server *StatusService) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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