Versions in this module Expand all Collapse all v1 v1.6.2 Nov 21, 2021 v1.6.1 Nov 19, 2021 v1.6.0 Nov 18, 2021 Changes in this version type Comms + Disconnected chan struct{} type Opts + CurrentWallet string + ExitOnRetry bool + StatusInterval int + Wallets []string type TcpClient + func (t *TcpClient) SetAuth() v1.5.3 Jul 27, 2021 v1.5.2 Jun 24, 2021 v1.5.1 Jun 24, 2021 v1.5.0 Jun 2, 2021 v1.4.0 May 25, 2021 Changes in this version + const CSVHEADER + const HEADER + const JOINOK + const PASSFAILED + const PAYMENTOK + const PONG + const POOLSTEPS + const STATUS + const STEPFAIL + const STEPOK + var Commit = "0000000" + var MinerName = fmt.Sprintf("ng%s", Version[1:]) + var Version = "v0.0.0" + func BytesToString(bytes []byte) string + func CreateLogPaymentsFile() + func GetPoolStatus(opts *Opts) + func JobFeeder(comms *Comms, jobComms *JobComms) + func LogPaymentReq(poolIp string, wallet string, block int, amount string) + func LogPaymentResp(paymentMsg []string, poolIp string) + func Mine(opts *Opts) + func Miner(workerNum string, comms *Comms, ready chan bool) + func NewManagerComms() *managerComms + func Parse(comms *Comms, poolIp string, wallet string, block int, resp string) + func SolutionManager(solComms *SolutionComms, showPop bool) + type Comms struct + Balance chan string + Block chan int + BlocksTillPayment chan int + Diff chan int + HashRate chan int + Jobs chan Job + Joined chan struct{} + MinerSeed chan string + Pong chan struct{} + PoolAddr chan string + PoolDepth chan int + PoolHashRate chan string + PoolStatus chan PoolStatus + Reports chan Report + Solutions chan Solution + Step chan int + StepFailed chan int + StepSolved chan int + TargetChars chan int + TargetString chan string + func NewComms() *Comms + type Job struct + Block int + Diff int + PoolAddr string + PoolDepth int + SeedFull string + SeedFullBytes []byte + SeedMiner string + SeedPostfix string + Step int + TargetChars int + TargetString string + type JobComms struct + Block chan int + Diff chan int + MinerSeed chan string + PoolAddr chan string + PoolDepth chan int + Step chan int + TargetChars chan int + TargetString chan string + func NewJobComms() *JobComms + type MinerInfo struct + Address string + Balance string + BalanceHR string + BlocksTillPayment string + type Opts struct + Cpu int + IpAddr string + IpPort int + PoolPw string + ShowPop bool + Wallet string + type PoolStatus struct + Fee string + FeeRaw int + HashRate string + HashRateRaw string + MinerCnt string + Miners []MinerInfo + Share string + ShareRaw int + func NewPoolStatus(s []string) PoolStatus + func (p *PoolStatus) PrettyPrint() + type Report struct + Duration time.Duration + Hashes int + WorkerNum string + type Solution struct + Block int + Chars int + FullTarget string + HashStr string + Seed string + SolvedHash string + Step int + Target string + TargetLen int + type SolutionComms struct + Block chan int + Diff chan int + SendChan chan string + Solution chan Solution + Step chan int + StepSent chan struct{} + func NewSolutionComms(sendChan chan string) *SolutionComms + type TcpClient struct + RecvChan chan string + SendChan chan string + func NewTcpClient(opts *Opts, comms *Comms, showLogs, join bool) *TcpClient