<p>If you run out of work while waiting for longpoll to finish, then what you should do is submit another getwork request.</p>

<p>Note that just because you find a share in a particular piece of work, doesn't mean that you're done with that piece of work. There still might be shares or even a block solution in there somewhere.</p>

CC BY-SA 3.0
2014-10-24T16:05:26.457Z
2014-10-24T16:05:26.457Z
Nick ODell
<p>Getwork (GWK) is a dieing protocol with the advent of ASICs. STM and GBT adequately support ASIC technologies. Dig into <a href="https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki" rel="nofollow">GBT</a> some that has details about long polling, but first <a href="https://deepbit.net/longpolling.php" rel="nofollow">read</a>.  </p>

<p>With the hash rates of 5KH/s and the mentioning scrypt you must be mining a little LTC, and GWK is quite adequate for that purpose. </p>

CC BY-SA 3.0
2014-10-24T16:02:04.680Z
I can't tell if this is answering the question.
Nick ODell
CC BY-SA 3.0
2013-12-28T06:38:55.477Z
2013-12-28T06:38:55.477Z
skaht
<p>i am coding simple miner.
I succesfully implemented Getwork in basic form. Next thing is gonna be Longpolling. 
If i understand correctly longpoll is just connection that is waiting for next block. So, what happens when I am waiting for longpoll and submit share ? I am supposed to mine further(increase nonce and continue) or simply wait for longpoll. Using only getwork and SSE2 optimized scrypt I was able to get 5kHash/s on my i5-4670K on single thread.</p>

CC BY-SA 3.0
2013-12-28T00:40:40.677Z
I dont think you need to long poll. Check out [blocknotify](https://github.com/bitcoin/bitcoin/pull/743).
Loourr
<api><development><mining-software><getwork>
What is miner supposed to do when waiting for longpoll
semtexzv
# What is miner supposed to do when waiting for longpoll

(Asked by: username_0 on 2013-12-27)

i am coding simple miner.
I succesfully implemented Getwork in basic form. Next thing is gonna be Longpolling.
If i understand correctly longpoll is just connection that is waiting for next block. So, what happens when I am waiting for longpoll and submit share ? I am supposed to mine further(increase nonce and continue) or simply wait for longpoll. Using only getwork and SSE2 optimized scrypt I was able to get 5kHash/s on my i5-4670K on single thread.

**Tags:** api, development, mining-software, getwork

> **Comments:**
> **username_1**: I dont think you need to long poll. Check out [blocknotify](https://github.com/bitcoin/bitcoin/pull/743).  

---

## 2 answers

### Answer by username_2 on 2014-10-24. Score: 2

If you run out of work while waiting for longpoll to finish, then what you should do is submit another getwork request.

Note that just because you find a share in a particular piece of work, doesn't mean that you're done with that piece of work. There still might be shares or even a block solution in there somewhere.


---

### Answer by username_3 on 2013-12-28. Score: -1

Getwork (GWK) is a dieing protocol with the advent of ASICs. STM and GBT adequately support ASIC technologies. Dig into [GBT](https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki) some that has details about long polling, but first [read](https://deepbit.net/longpolling.php).

With the hash rates of 5KH/s and the mentioning scrypt you must be mining a little LTC, and GWK is quite adequate for that purpose.

> **Comments:**
> **username_2**: I can't tell if this is answering the question.  

---

