What is miner supposed to do when waiting for longpoll

0

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.

semtexzv

Posted 2013-12-27T23:40:52.793

Reputation: 11

I dont think you need to long poll. Check out blocknotify.

Loourr 2013-12-28T00:40:40.677

Answers

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.

Nick ODell

Posted 2013-12-27T23:40:52.793

Reputation: 26 536

-1

Getwork (GWK) is a dieing protocol with the advent of ASICs. STM and GBT adequately support ASIC technologies. Dig into GBT some that has details about long polling, but first read.

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.

skaht

Posted 2013-12-27T23:40:52.793

Reputation: 2 588

I can't tell if this is answering the question.Nick ODell 2014-10-24T16:02:04.680