FirmwareAPI DocumentationCGminer commands

summary

Summary of mining statistics

summary

Description

Provides the summary of all miner statistics.

On Antminer Equihash ASIC miners (Zcash), hashrate is measured in solutions per second. The field names are kept for compatibility, and the unit follows the coin: the GHS fields are in KSol/s and Total MH is in Sol/s.

Command

$ echo '{"command": "summary"}' | nc $MINER_IP 4028 | jq

Examples

$ echo '{"command": "summary"}' | nc $MINER_IP 4028 | jq
{
  "STATUS": [
    {
      "Code": 11,
      "Description": "LUXminer 2024.2.19.131822-ef17c0c4",
      "Msg": "Summary",
      "STATUS": "S",
      "When": 1672770089
    }
  ],
  "SUMMARY": [
    {
      "Accepted": 179,
      "Best Session Share": 735633,
      "Best Share": 735633,
      "Device Hardware%": 0.0,
      "Device Rejected%": 0.0,
      "Difficulty Accepted": 6094848,
      "Difficulty Rejected": 0,
      "Difficulty Stale": 0,
      "Discarded": 0,
      "Elapsed": 2330,
      "Found Blocks": 0,
      "Found Blocks All Time": 0,
      "GHS 30m": 13713.97,
      "GHS 5s": 13084.18,
      "GHS av": 13701.74,
      "Get Failures": 0,
      "Getworks": 148,
      "Hardware Errors": 19,
      "Last Found Block": 0,
      "Last Found Block Hash": "",
      "Last Found Block Height": 0,
      "Last getwork": 1672770079,
      "Local Work": 0,
      "Network Blocks": 3,
      "Network Difficulty": 152123456789012.0,
      "Pool Rejected%": 0.0,
      "Pool Stale%": 0.0,
      "Rejected": 0,
      "Remote Failures": 0,
      "Stale": 0,
      "Total MH": 13701749.071048405,
      "Utility": 17.35,
      "Work Utility": 21.87
    }
  ],
  "id": 1
}

Field details

FieldNotes
AcceptedTotal number of accepted shares.
Best Session ShareHighest accepted share difficulty since the miner last started. Resets on every restart, unlike Best Share.
Best ShareAll-time highest accepted share difficulty. Persisted across restarts.
Device Hardware%Hardware Errors as a percentage of all the work the boards returned (hardware errors plus the difficulty of accepted, rejected and stale shares), up to three decimals. The same formula as the per-board value in asc and devs, summed over every board, including boards that are powered off.
Device Rejected%Difficulty of rejected and stale shares as a percentage of the difficulty the boards returned (accepted, rejected and stale), up to three decimals. The same formula as the per-board value in asc and devs, summed over every board, including boards that are powered off.
Difficulty AcceptedTotal difficulty of accepted shares.
Difficulty RejectedTotal difficulty of rejected, non-stale shares.
Difficulty StaleTotal difficulty of stale shares.
DiscardedAlways zero.
ElapsedNumber of seconds since the miner started.
Found BlocksBlocks found since the miner started: accepted shares whose difficulty reached the network difficulty of the block they were mining. Counted when the pool accepts the share, as cgminer does. Dev-fee shares are not counted. A count from the miner's side only; see Found Blocks below.
Found Blocks All TimeBlocks found over the life of the miner. Persisted across restarts, like Best Share.
Get FailuresAlways zero.
GetworksTotal number of jobs received.
Hardware ErrorsNonces whose hash failed verification plus nonces that repeat the board's immediately preceding nonce, over every board. Never decreases while the miner runs (powering a board off keeps its errors); resets when the miner restarts. See Hardware Errors below.
Last Found BlockUnix time at which the pool accepted the share of the last found block, 0 when the miner has never found one. Persisted across restarts.
Last Found Block HashHash of the last found block, as block explorers print it. "" when the miner has never found one. Persisted across restarts.
Last Found Block HeightHeight of the last found block, read from the job's coinbase (BIP34). 0 when the miner has never found one and on Antminer Equihash ASIC miners, whose jobs carry no height. Persisted across restarts.
Last getworkUnix time of the last received job.
Local WorkAlways zero.
GHS 30mHashrate, in GH/s, of the last 30 minutes.
GHS 5sHashrate, in GH/s, of the last 5 seconds.
GHS avAverage hashrate in GH/s.
Network BlocksNumber of distinct blocks the user pools have announced since the miner started, the first one included. Dev-fee jobs are not counted.
Network DifficultySame as Network Difficulty in coin: the difficulty of the block the current job is mining. Best Share and Network Difficulty share the same scale, so a Best Share at or above it met the network difficulty of the current block.
Pool Rejected%Percentage of rejected, non-stale shares.
Pool Stale%Percentage of stale shares.
RejectedNumber of rejected, non-stale shares.
Remote FailuresAlways zero.
StaleNumber of stale shares.
Total MHSame as GHS av, but in MH/s.
UtilityNumber of submitted shares per minute.
Work UtilityNumber of received jobs per minute.

Found Blocks

Found Blocks, Found Blocks All Time, Last Found Block, Last Found Block Hash and Last Found Block Height are counted from the miner's side only. A found block here is a share whose difficulty met the network difficulty of the block it was mining, and that the pool accepted as a share.

The firmware log records each found block with its hash, the job id and the mining.submit parameters as sent to the pool, in a Block found! line. The all-time count and the most recent block are persisted in the found_blocks file, next to the best_share file in the firmware's stats directory, as one line of five space-separated fields:

<Found Blocks All Time> <Last Found Block> <Last Found Block Height> <Last Found Block Hash> <solution>

solution is the mining.submit parameters after the job id, comma-separated, exactly as sent: extranonce2,ntime,nonce,version on Bitcoin, ntime,nonce2,solution on Zcash. Each new block replaces the previous one; only the count accumulates. The solution is not reported by any API command.

Stratum V1 has no message that tells the miner whether the pool submitted that block to the network, or whether the network accepted it. A counted block may still never make it into the chain, for example when the pool submits it after a competing block at the same height, when a node rejects it, or when it is later orphaned. Check the pool's block list or a block explorer to confirm a block. Treat these fields as "the miner produced a block-worthy share", not as a confirmed block reward.

Hardware Errors

LuxOS counts hardware errors the way stock Bitmain firmware counts its hw field: a nonce whose hash fails verification, and a nonce that repeats the nonce the board returned immediately before it. The firmware also detects duplicates further back in a per-board window and drops them before submission; those show per chip as DoubleHashCount in healthchipget but are not hardware errors. CRC errors and read timeouts are not hardware errors either, on LuxOS or on stock firmware. No API command reports CRC counts; they appear in the firmware log. The ReadErrors and ReadTimeouts in healthchipget count failed chip register reads, not corrupted nonces.

A nonce that arrives late, for work the miner has already replaced, is not a hardware error while the firmware still holds that work: SHA-256 boards are checked against the current and the previous work. A nonce for anything older fails verification and counts as a hardware error. Stock Bitmain firmware keeps the last four jobs for this check, so it counts such a nonce later than LuxOS does.

Antminer Z15 Pro (Equihash)

On the Antminer Z15 Pro, Hardware Errors and Device Hardware% read far higher than on any SHA-256 miner, and that is normal. Equihash chips return a steady share of solutions that fail verification, mostly solutions with a repeated index. This is a property of the algorithm, not a fault, so compare Z15 Pro boards and chips with each other rather than with other models.

A healthy Z15 Pro settles at about 14% Device Hardware%, from two rates:

  • About 8% of the solutions a chip returns are invalid (7.5% to 8.5% per chip). This rate is steady on every healthy chip.
  • The chips return about two solutions for each difficulty-1 unit of accepted work at the ticket mask LuxOS uses.

Device Hardware% is measured against the difficulty of the shares the boards returned, nearly all of it accepted on a healthy board, and how much difficulty a board is credited depends on share luck. A freshly started miner can read anything up to 100% before its first accepted shares, and 20% or more for the first minutes. After a few hundred accepted shares (about 30 minutes at a pool difficulty of 512) each board reads within about 2 percentage points of 14%, and the summary value within about 1. The longer the miner runs, the closer it gets.

Look into a board that stays several points above its siblings after an hour. The luck-free signal is per chip in healthchipget: RepeatedIndexCount divided by SolutionCount, both counted since the board last started, is about 0.07 to 0.08 on a healthy chip and 0.12 or more on a failing one. BadHashCount counts since the firmware started and survives a board power-off, so do not divide it by SolutionCount.

Stock firmware counts the same class of solution at a higher ticket mask, which is why its absolute number is much smaller.

On this page