C# Class NiceHashMiner.Miners.MinerEtherum

For now used only for daggerhashimoto
Inheritance: Miner
Datei anzeigen Open project: nicehash/NiceHashMiner

Protected Properties

Property Type Description
CurrentBlockString string
DaggerHashimotoGenerateDevice NiceHashMiner.Devices.ComputeDevice
IsPaused bool

Public Methods

Method Description
GetDagGenerationString ( DagGenerationType type ) : string
GetSummary ( ) : APIData
InitMiningSetup ( MiningSetup miningSetup ) : void
MinerEtherum ( string minerDeviceName, string blockString ) : System
Start ( string url, string btcAdress, string worker, List usedMiners ) : void

Protected Methods

Method Description
BenchmarkCreateCommandLine ( Algorithm algorithm, int time ) : string
BenchmarkOutputErrorDataReceivedImpl ( string outdata ) : void
BenchmarkParseLine ( string outdata ) : bool
GET_MAX_CooldownTimeInMilliseconds ( ) : int
GetBenchmarkCommandStringPart ( Algorithm algorithm ) : string
GetDevicesCommandString ( ) : string
GetStartCommandStringPart ( string url, string username ) : string
UpdateBindPortCommand ( int oldPort, int newPort ) : bool
_Start ( ) : NiceHashProcess
_Stop ( MinerStopType willswitch ) : void

Private Methods

Method Description
GetSpeed ( bool &ismining, double &speed ) : GetSpeedStatus

Call this to get current ethminer speed. This method may block up to 2 seconds.

SendUDP ( int code ) : void
SetEthminerAPI ( int port ) : void

Initialize ethminer API instance.

StartMining ( ) : void

Call this to start ethminer. If ethminer is already running, nothing happens.

StopMining ( ) : void

Call this to stop ethminer. If ethminer is already stopped, nothing happens.

Method Details

BenchmarkCreateCommandLine() protected method

protected BenchmarkCreateCommandLine ( Algorithm algorithm, int time ) : string
algorithm Algorithm
time int
return string

BenchmarkOutputErrorDataReceivedImpl() protected method

protected BenchmarkOutputErrorDataReceivedImpl ( string outdata ) : void
outdata string
return void

BenchmarkParseLine() protected method

protected BenchmarkParseLine ( string outdata ) : bool
outdata string
return bool

GET_MAX_CooldownTimeInMilliseconds() protected method

protected GET_MAX_CooldownTimeInMilliseconds ( ) : int
return int

GetBenchmarkCommandStringPart() protected abstract method

protected abstract GetBenchmarkCommandStringPart ( Algorithm algorithm ) : string
algorithm Algorithm
return string

GetDagGenerationString() public static method

public static GetDagGenerationString ( DagGenerationType type ) : string
type DagGenerationType
return string

GetDevicesCommandString() protected method

protected GetDevicesCommandString ( ) : string
return string

GetStartCommandStringPart() protected abstract method

protected abstract GetStartCommandStringPart ( string url, string username ) : string
url string
username string
return string

GetSummary() public method

public GetSummary ( ) : APIData
return APIData

InitMiningSetup() public method

public InitMiningSetup ( MiningSetup miningSetup ) : void
miningSetup MiningSetup
return void

MinerEtherum() public method

public MinerEtherum ( string minerDeviceName, string blockString ) : System
minerDeviceName string
blockString string
return System

Start() public method

public Start ( string url, string btcAdress, string worker, List usedMiners ) : void
url string
btcAdress string
worker string
usedMiners List
return void

UpdateBindPortCommand() protected method

protected UpdateBindPortCommand ( int oldPort, int newPort ) : bool
oldPort int
newPort int
return bool

_Start() protected method

protected _Start ( ) : NiceHashProcess
return NiceHashProcess

_Stop() protected method

protected _Stop ( MinerStopType willswitch ) : void
willswitch MinerStopType
return void

Property Details

CurrentBlockString protected_oe property

protected string CurrentBlockString
return string

DaggerHashimotoGenerateDevice protected_oe property

protected ComputeDevice,NiceHashMiner.Devices DaggerHashimotoGenerateDevice
return NiceHashMiner.Devices.ComputeDevice

IsPaused protected_oe property

protected bool IsPaused
return bool