<p>The above answers are good but one thing I would add is that hashing rate affect stale share %.</p>

<p>Why?  Because with a faster miner a smaller % of shares are even "at risk" of being stale.</p>

<p>Pools only pay for completed shares.  A block is found on average every 10 minutes so in that 10 minute window the last share is the one at risk of being stale.  Now the time between blocks varies but is 10 minutes on average so we will just look at affect of hashing power in a 10 minute window.</p>

<p>A 100MH/s miner would complete (on average) one share every ~42.9 seconds.  Which means in 10 minutes it could complete ~14 shares.  A 800MH/s miner would complete one shares 5.36 seconds.  In 10 minutes that is ~112 shares.</p>

<p>If both miners are working properly and connected to fast accurate pools at most they will lose one share.  In other words for the slow miner 1 in 14 shares are "at risk" while with the fast miner only 1 in 112 shares are at risk.  The far extreme of this would be trying to mine with a slow CPU.  Your hashing rate could be so slow that on average you only complete 1 share per 10 minute block.  So 100% of your shares are at risk of being stale.</p>

<p>Everything else being equal a faster miner is more efficient putting less shares at risk of being stale.</p>

<p>Note: for this purpose only the single GPU hashing power matters not the total rig or farm hashing power.</p>

CC BY-SA 3.0
2011-10-11T15:18:19.233Z
I don't agree. The window where a stale share can be found begins when the pool controller sees a new block and ends when the miner has a new work unit through long polling. The size of this window is dependent only on network latency and pool load and is totally independent of the miner's hashing power. You are correct that the percentage of shares "at risk" varies, but that doesn't matter because as the percent of risk goes up, the level of risk per share goes down. (The slow miner has all his shares at risk, but very low risk since the danger window is a tiny fraction of the mining time.)
David Schwartz
CC BY-SA 3.0
2011-10-09T03:38:13.077Z
2011-10-09T16:25:01.237Z
2011-10-09T16:25:01.237Z
DeathAndTaxes
<p>A stale share occurs when you find a share and submit it to the mining pool after the pool has already moved on to the next block. The percentage of stale shares should be very low if everything's working correct, around 2 out of 1,000 shares or so.</p>

<p>Several factors affect the stale share rate. The three most important are long polling, pool load, and miner-to-pool latency.</p>

<p>Any shares found based on old work units after the pool controller receives a new block will be stale. Long polling is a technique that allows the pool to notify all of its miners when there's a change in the block chain so they can immediately request new work units. If your pool or mining software doesn't support long polling, you will finish out the old work units, generating stale shares.</p>

<p>When the long polling notification goes out, all miners that support long polling request new work units at about the same time. This generates a massive burst of load as the pool has to manages lots of network traffic and do several SHA-256 operations for each share it issues. If the pool is slow to issue you a new work unit, the window in which you can generate stale shares increases.</p>

<p>The long polling and subsequent share request process requires a few network operations. Latency between the miner and the pool can slow this process down. Picking a pool with a controller near you (network wise) can reduce this part of the stale share window as well.</p>

<p>In addition, some pools have had bugs in their software that produced stale shares. The pool checks if the share is stale by seeing if it has a record of the work unit and clearing all work unit records when the chain changes. So if something goes wrong with the work unit tracking process, that will result in a stale share being reported.</p>

<p>For example, if the pool erroneously issues the same work unit to two miners, the first one to submit the share will get credit. The pool will remove the record when the share is found because otherwise you could submit the same share more than once. This will result in you getting a stale share report.</p>

<p>I probably shouldn't admit it, but I was actually responsible for one such bug. My first implementation of long polling in the Bitcoin client rushed as quickly as possible to send out the notifications of a new block being discovered to miners -- so quickly that some miners could request new work units before the client had finished processing the new block and they got work units based on the old block. Any shares they submitted based on those work units would be reported as stale.</p>

CC BY-SA 3.0
2011-10-09T22:11:23.963Z
Interesting story. Do you have some blog or website with more stories like this?
ThePiachu
CC BY-SA 3.0
2011-10-07T22:58:35.867Z
2011-10-07T22:58:35.867Z
David Schwartz
<p>The amount of data required for a standard rig isn't very high. There are a few things that I would suggest if you are having issues.</p>
<ol>
<li>Don't use wifi if possible. Connect your rig directly to your network with an ethernet cable.</li>
<li>Connect to the closest mining pool. Ping different pools and use the closest one. The lower the time the better.</li>
<li>Make sure your network is running as good as possible. A lot of different factors can affect network performance and cause interference. Even on ethernet connected devices. Use quality Shielded Twisted Pair (STP) cable to reduce interference.</li>
</ol>
<p>If you do this, you will notice a considerable improvement on your network.</p>

CC BY-SA 4.0
2020-07-26T03:49:33.553Z
2020-07-26T06:28:12.377Z
2020-07-26T06:28:12.377Z
SackTrusterof20
<p>I was also facing the same problem that time. This problem was due to my usb device (modem) which give internet access to my rig, when I remove that usb modem and connect the rig with my phone via USB than i saw a huge change in the mining performance. </p>

<p>My stale share which came down from 30% to almost 3%. My modem was connected directly to motherboard and it may be it got disturbance signal from all my gpus.  It was network problem and make sure the device which you use for giving internet to rig should be kept far from it.</p>

<p>In given picture you can see how much stale shares drops from left to right .</p>

<p><a href="https://i.sstatic.net/9pE02.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9pE02.png" alt="enter image description here"></a></p>

CC BY-SA 3.0
2018-02-11T17:05:45.010Z
2018-02-11T17:05:45.010Z
RioTech Love Mix videos with s
<p>Recently, SparkPool released a new version, added the feature that display stale shares. Some miners are asking what is stale share, we think it is necessary to explain it in detail.</p>

<p>Under the current POW mechanism, the mining pools push calculation task to the miner continuously. If the mining pool receives the share of the last task submitted by the miner after a new task is sent, this share is a stale share. Of course, there is no need to worry too much about it. Stale shares will be calculated as income, but it will be slightly lower than the normal share.</p>

<p>The delay is mainly affected by the miner's network status, and a good network performance will greatly reduce the chance of stale shares.  We hope that the miners improve their own networks, and the SparkPool will be continuously optimized the servers simultaneously. If you have any other questions, feel free to contact our customer service staff.</p>

CC BY-SA 3.0
2018-04-13T06:54:43.947Z
2018-04-13T06:54:43.947Z
SparkPool
<p>Stale shares are the shares that were sent after a block was already solved, that is to say, they were sent late and were no longer valid. To avoid stale shares, best to have a reasonably fast mining rig (so you won't take too long to calculate a share, probably not a problem for most machines), reliable internet connection (stable, not necessarily fast), but also an up-to-date mining software (if you are mining with some really old miner it might not communicate in the most efficient manner with the pool).</p>

<p>In short - update your miner every now and then, make sure your internet is running okay, and don't mine on really weak rigs.</p>

CC BY-SA 3.0
2011-10-07T22:28:27.797Z
2011-10-07T22:28:27.797Z
ThePiachu
<p>When I mine at a pool, only a part of my shares are accepted. There is a small percentage which is marked as stale.</p>

<p>As far as I know I only get paid for accepted shares, so what are these stale shares and how can I avoid them?</p>

<mining-pools><mining-pool-shares><mining-setup>
What are stale shares and what can I do to avoid them?
nmat
# What are stale shares and what can I do to avoid them?

(Asked by: username_0 on 2011-10-07)

When I mine at a pool, only a part of my shares are accepted. There is a small percentage which is marked as stale.

As far as I know I only get paid for accepted shares, so what are these stale shares and how can I avoid them?

**Tags:** mining-pools, mining-pool-shares, mining-setup


---

## 6 answers

### Answer by username_3 on 2011-10-07. Score: 36 | Accepted answer

Stale shares are the shares that were sent after a block was already solved, that is to say, they were sent late and were no longer valid. To avoid stale shares, best to have a reasonably fast mining rig (so you won't take too long to calculate a share, probably not a problem for most machines), reliable internet connection (stable, not necessarily fast), but also an up-to-date mining software (if you are mining with some really old miner it might not communicate in the most efficient manner with the pool).

In short - update your miner every now and then, make sure your internet is running okay, and don't mine on really weak rigs.


---

### Answer by username_2 on 2011-10-07. Score: 23

A stale share occurs when you find a share and submit it to the mining pool after the pool has already moved on to the next block. The percentage of stale shares should be very low if everything's working correct, around 2 out of 1,000 shares or so.

Several factors affect the stale share rate. The three most important are long polling, pool load, and miner-to-pool latency.

Any shares found based on old work units after the pool controller receives a new block will be stale. Long polling is a technique that allows the pool to notify all of its miners when there's a change in the block chain so they can immediately request new work units. If your pool or mining software doesn't support long polling, you will finish out the old work units, generating stale shares.

When the long polling notification goes out, all miners that support long polling request new work units at about the same time. This generates a massive burst of load as the pool has to manages lots of network traffic and do several SHA-256 operations for each share it issues. If the pool is slow to issue you a new work unit, the window in which you can generate stale shares increases.

The long polling and subsequent share request process requires a few network operations. Latency between the miner and the pool can slow this process down. Picking a pool with a controller near you (network wise) can reduce this part of the stale share window as well.

In addition, some pools have had bugs in their software that produced stale shares. The pool checks if the share is stale by seeing if it has a record of the work unit and clearing all work unit records when the chain changes. So if something goes wrong with the work unit tracking process, that will result in a stale share being reported.

For example, if the pool erroneously issues the same work unit to two miners, the first one to submit the share will get credit. The pool will remove the record when the share is found because otherwise you could submit the same share more than once. This will result in you getting a stale share report.

I probably shouldn't admit it, but I was actually responsible for one such bug. My first implementation of long polling in the Bitcoin client rushed as quickly as possible to send out the notifications of a new block being discovered to miners -- so quickly that some miners could request new work units before the client had finished processing the new block and they got work units based on the old block. Any shares they submitted based on those work units would be reported as stale.

> **Comments:**
> **username_3**: Interesting story. Do you have some blog or website with more stories like this?  

---

### Answer by username_1 on 2011-10-09. Score: 10

The above answers are good but one thing I would add is that hashing rate affect stale share %.

Why? Because with a faster miner a smaller % of shares are even "at risk" of being stale.

Pools only pay for completed shares. A block is found on average every 10 minutes so in that 10 minute window the last share is the one at risk of being stale. Now the time between blocks varies but is 10 minutes on average so we will just look at affect of hashing power in a 10 minute window.

A 100MH/s miner would complete (on average) one share every ~42.9 seconds. Which means in 10 minutes it could complete ~14 shares. A 800MH/s miner would complete one shares 5.36 seconds. In 10 minutes that is ~112 shares.

If both miners are working properly and connected to fast accurate pools at most they will lose one share. In other words for the slow miner 1 in 14 shares are "at risk" while with the fast miner only 1 in 112 shares are at risk. The far extreme of this would be trying to mine with a slow CPU. Your hashing rate could be so slow that on average you only complete 1 share per 10 minute block. So 100% of your shares are at risk of being stale.

Everything else being equal a faster miner is more efficient putting less shares at risk of being stale.

Note: for this purpose only the single GPU hashing power matters not the total rig or farm hashing power.

> **Comments:**
> **username_2**: I don't agree. The window where a stale share can be found begins when the pool controller sees a new block and ends when the miner has a new work unit through long polling. The size of this window is dependent only on network latency and pool load and is totally independent of the miner's hashing power. You are correct that the percentage of shares "at risk" varies, but that doesn't matter because as the percent of risk goes up, the level of risk per share goes down. (The slow miner has all his shares at risk, but very low risk since the danger window is a tiny fraction of the mining time.)  

---

### Answer by username_4 on 2020-07-26. Score: 3

The amount of data required for a standard rig isn't very high. There are a few things that I would suggest if you are having issues.

1. Don't use wifi if possible. Connect your rig directly to your network with an ethernet cable.
2. Connect to the closest mining pool. Ping different pools and use the closest one. The lower the time the better.
3. Make sure your network is running as good as possible. A lot of different factors can affect network performance and cause interference. Even on ethernet connected devices. Use quality Shielded Twisted Pair (STP) cable to reduce interference.

If you do this, you will notice a considerable improvement on your network.


---

### Answer by username_5 on 2018-02-11. Score: 1

I was also facing the same problem that time. This problem was due to my usb device (modem) which give internet access to my rig, when I remove that usb modem and connect the rig with my phone via USB than i saw a huge change in the mining performance.

My stale share which came down from 30% to almost 3%. My modem was connected directly to motherboard and it may be it got disturbance signal from all my gpus. It was network problem and make sure the device which you use for giving internet to rig should be kept far from it.

In given picture you can see how much stale shares drops from left to right .

[![enter image description here](https://i.sstatic.net/9pE02.png)](https://i.sstatic.net/9pE02.png)


---

### Answer by username_6 on 2018-04-13. Score: 0

Recently, username_6 released a new version, added the feature that display stale shares. Some miners are asking what is stale share, we think it is necessary to explain it in detail.

Under the current POW mechanism, the mining pools push calculation task to the miner continuously. If the mining pool receives the share of the last task submitted by the miner after a new task is sent, this share is a stale share. Of course, there is no need to worry too much about it. Stale shares will be calculated as income, but it will be slightly lower than the normal share.

The delay is mainly affected by the miner's network status, and a good network performance will greatly reduce the chance of stale shares. We hope that the miners improve their own networks, and the username_6 will be continuously optimized the servers simultaneously. If you have any other questions, feel free to contact our customer service staff.


---

