A worker at 200 TH/s submits about 640 shares in 15 minutes when share difficulty is 65,536. Poisson noise on that count is roughly 25 shares, or 4%. A pool graph showing 194 TH/s against 200 TH/s on the ASIC screen may therefore be nothing at all. Measure before you change pools or clock profiles.

Know how much noise is normal

Shares arrive at random, so short windows are noisy. The expected rate and the noise follow from two formulas:

shares_per_second = hashrate_H/s / (share_difficulty * 2^32) relative_noise = 1 / sqrt(expected_shares_in_window) 

Suppose a worker runs 200 TH/s at share difficulty 65,536. These are example inputs, not a pool setting.

  • Rate: 200e12 / (65,536 × 4.295e9) ≈ 0.71 shares/s.
  • 15 minutes: about 640 shares, noise about 4%.
  • 1 hour: about 2,560 shares, noise about 2%.
  • 24 hours: about 61,400 shares, noise about 0.4%.

Judge a gap over 24 hours, not over one 15-minute graph point.

Read the reject reason

A share is proof that the miner found a hash below the pool's share target. The pool sums the difficulty of accepted shares to estimate hashrate. A reject is a mining.submit the pool refused:

{"id":412,"method":"mining.submit","params":["login.name","4f2a","00000000","6561a3c0","9b1c07e2"]} {"id":412,"result":null,"error":[21,"Job not found",null]} 

Codes 21, 22 and 23 are a common convention, and pools differ in wording and numbering. Read your pool's documentation.

Code Meaning Usual suspect
21 Job not found (stale) Latency, reconnects, slow job switch
22 Duplicate share Proxy or firmware resubmitting
23 Low difficulty share Difficulty change not applied, bad hardware output

Some dashboards merge these into one "rejected" counter. Split them before you diagnose anything. If your proxy logs JSON lines with worker and error fields (an assumed format), a count by worker and code takes one line:

jq -r 'select(.error != null) | [.worker, .error[0]] | @tsv' stratum.jsonl | sort | uniq -c | sort -rn 

Why stale shares happen

When a new block arrives, the pool sends a job with clean_jobs set to true and retires the old work. Shares for the old job are stale if they reach the pool after that moment. The delay before the miner receives the new job and the time a found share spends in flight add up to about one round trip. Shares are spread evenly in time, so the rough stale fraction is:

stale_fraction ≈ RTT / interval_between_clean_jobs 

With a 200 ms RTT and a clean job every 600 s, that gives 0.2 / 600 ≈ 0.03%. With a congested uplink at 2 s RTT, it is about 0.33%. If a pool flushes jobs every 60 s, even 200 ms RTT gives 0.33%. These are example values, not a pool figure, and the model gives orders of magnitude only.

Stale shares across a whole rack point at the network: reconnects, route changes, packet loss, a distant endpoint. A clean ping can still hide short Stratum disconnects, so compare reject timestamps with reconnect events. Stale shares on one machine point at that machine, such as slow job handling or an overloaded controller.

Invalid shares on one box point at hardware errors, for example after a frequency or voltage change. A missing hashboard shows up as lower hashrate, not as rejects. Save the log and note the time of the change. Then test the stock profile on that worker.

Duplicates that appear after a proxy change point at the proxy. Compare a worker behind it with one connected directly, with the same firmware and endpoint.

Put a number on the loss

The formula is simple:

gross_loss/day = gross_revenue/day × unpaid_difficulty_share 

Use difficulty, not share count. With variable difficulty, ten rejects can carry more work than ten accepts. Count only work that is never credited. Duplicates repeat work that was already paid, so exclude them. Check your pool's stale-credit rules. The result is an estimate of the gap and sits inside block-luck noise.

Suppose one machine would earn $12/day gross at 100% credited work. This is an example, not a current hashprice. Say 3% of its work goes uncredited:

  • Gross loss: 12 × 0.03 = $0.36/day. A 20-machine rack loses $7.20/day.
  • Power is unchanged. At 3.5 kW and $0.07/kWh, the machine burns 84 kWh, or $5.88/day.
  • Margin before pool fee, cooling, hosting, repairs and financing: $12 − $5.88 = $6.12 before the loss and $11.64 − $5.88 = $5.76 after. That is a 5.9% drop in margin from a 3% drop in revenue.

The unfavourable case is worse. At $7/day gross and the same power cost, margin is $1.12. The same 3% loss is $0.21, which cuts margin by about 19%. Unpaid work still costs full electricity, so thin margins feel it most. At 0.1% (an example rate, not a pool figure) the same $12 machine loses $0.012/day, which is not worth a weekend of tuning.

Test a fix without fooling yourself

Decide the pass criteria before you start, such as "rejected difficulty below 0.1% over 24 hours". Then follow these rules:

  1. Change one variable at a time: endpoint, proxy, firmware or profile.
  2. Run matched workers side by side in the same UTC window. With a single ASIC, run A-B-A and compare similar windows.
  3. If the gap follows the endpoint, it is the route. If it follows the ASIC after you swap units, start at the machine.
  4. Compare accepted and rejected difficulty first, over the same window. Raw share counts shift with difficulty changes and carry noise of about 0.4% over 24 hours.
  5. Judge payout differences only over weeks. Block-based rewards swing with luck, so look at the weak weeks, not only the average.

If you test on QUAI, note that the Quai network locks newly mined block rewards for a period. Hash-Hut does not make miners wait for that unlock and pays QUAI out of its own funds after 1 day. The only remaining wait is the coin's minimum payout (300 QUAI at the time of writing; check the coin page). A balance below the minimum is a delay, not a loss. Until the first payout, count the balance as accrued, not paid.

Keep a record of each change and its time. Without one, a reject spike a week later has no cause you can find.

Check it on the pool side and the machine side

The Hash-Hut dashboard shows workers, hashrate, and accepted and rejected work. This gives you a second measurement point for matched tests. Compare Hash-Hut with your current pool on your own matched workers. BTC, BCH and LTC are forwarded to partner pools, so judge those coins on your own measurements. If you use autoswitch, compare rejected difficulty and the gap between accepted shares around a coin change on your own workers. The pool sees accepted work, not temperatures, fans or hashboards.

For the machine side you need farm monitoring. Hash-Hut Monitoring is self-hosted and runs on a server inside your farm network. It covers WhatsMiner, Antminer, Avalon and Elphapex. It alerts on zero hashrate, a drop below a machine's own norm, a missing hashboard and unreachable pools, and it sends alerts to Telegram. Auto-reboot is off until you enable it. When you do, switch it on for one rack first and check the limits: by default it acts only on zero hashrate, waits 30 minutes between attempts and stops after 3. A reboot will not fix a bad route or a bad profile, so use it only for stuck machines.

Install Hash-Hut Monitoring on a server in your farm network, start the free 14-day trial on one rack (at the time of writing, renewal is free while the farm mines on the Hash-Hut pool with at least 5 PH/s SHA-256 or 250 GH/s Scrypt; check the page) and use it for machine-side signals; keep reject-code analysis in your pool logs.

Sources: Stratum V1 protocol notes (slush pool / Bitcoin Wiki) – mining.submit and error-code conventions · Foreman – stale and rejected shares documentation · Braiins – pool-side hashrate estimation and shares

Disclosure: written with AI assistance by the Hash-Hut team, which runs the Hash-Hut mining pool and Hash-Hut Monitoring mentioned above.