Bitcoin Forum

Bitcoin => Mining support => Topic started by: c4n10 on September 21, 2012, 11:16:52 PM



Title: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: c4n10 on September 21, 2012, 11:16:52 PM
I am trying out solo mining BTC, is there a way to configure my server for long polling and if so, should I be using it?


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: BitBlitz on September 22, 2012, 12:02:49 AM
Not with the client, although 0.7.0 has improvements that should reduce idle miner time.  If you're using an older client, I recommend upgrading.  How much idle time are you seeing?


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: c4n10 on September 22, 2012, 01:35:13 AM
Not with the client, although 0.7.0 has improvements that should reduce idle miner time.  If you're using an older client, I recommend upgrading.  How much idle time are you seeing?

I have no idea, lol...

I am using version 0.6.3 of the client and the only reason I ask is because when I connect my miner to a pool from time to time it tells me when long-polling has detected a new block, when I connect to my own client the threads just keep hashing with no indication of checking for orphaned blocks.

I just want to make sure that I don't waste time solo mining a block that has already been solved... If it was going to take me say a week to solve a block, and I've been hashing on that block for 3 days when somebody else with a better setup or better luck solves it I don't want to continue hashing on that block for the last 4 days it would have taken me to solve it if someone else hadn't beat me to it.


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: os2sam on September 23, 2012, 05:21:05 PM
I just want to make sure that I don't waste time solo mining a block that has already been solved... If it was going to take me say a week to solve a block, and I've been hashing on that block for 3 days when somebody else with a better setup or better luck solves it I don't want to continue hashing on that block for the last 4 days it would have taken me to solve it if someone else hadn't beat me to it.

Your not going to be hashing on a Bitcoin block for 3 or 4 days.  The difficulty is set to try to achieve solving 144 blocks a day.  Which is one block every 10 minutes.  And your Bitcoin client will know very quickly when a block has been found.
Sam


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: -ck on September 23, 2012, 10:16:58 PM
If you use cgminer and set solo mining as your first pool and set up a real pool which has longpoll as your 2nd pool, cgminer will use the longpoll from the backup pool to help speed up block change on the solo mining.


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: jamesg on October 02, 2012, 10:53:26 PM
If you use cgminer and set solo mining as your first pool and set up a real pool which has longpoll as your 2nd pool, cgminer will use the longpoll from the backup pool to help speed up block change on the solo mining.

Does this work both ways with cgminer? Can I have my main pool as the first pool and solo mining as a backup pool?


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: -ck on October 03, 2012, 12:15:27 PM
If you use cgminer and set solo mining as your first pool and set up a real pool which has longpoll as your 2nd pool, cgminer will use the longpoll from the backup pool to help speed up block change on the solo mining.

Does this work both ways with cgminer? Can I have my main pool as the first pool and solo mining as a backup pool?
Yes.


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: c4n10 on October 04, 2012, 08:21:53 PM
If you use cgminer and set solo mining as your first pool and set up a real pool which has longpoll as your 2nd pool, cgminer will use the longpoll from the backup pool to help speed up block change on the solo mining.

Thank you for the info! I will give this a try!


Title: Re: Question: Solo Mining - Do/Can I Set-up Long Polling...?
Post by: vmfx on March 18, 2014, 01:06:37 AM
do you know if this works for bfgminer as well ? ie solo mining on my first pool and having a backup pool for longpolling support ?

tSo, I have noticed that when I use the failover pool my miner doesnt detect blocks on the network ?

[2014-03-17 19:54:19] Started bfgminer 3.10.0
 [2014-03-17 19:54:19] Probing for an alive pool
 [2014-03-17 19:54:19] Network difficulty changed to 4.25G (30.42Ph/s)
 [2014-03-17 19:54:19] No suitable long-poll found for http://126.0.0.1:8332
 [2014-03-17 19:54:19] Pool 0 http://127.0.0.1:8332 alive
 [2014-03-17 19:54:19] Pool 1 http://stratum.btcguild.com:3333 alive
 [2014-03-17 19:54:19] Pool 1 is hiding block contents from us
 [2014-03-17 19:55:19] Block change for http://127.0.0.1:8332 detection via  http://stratum.btcguild.com:3333 stratum

then it just hangs there and doesnt detect any blocks on the network - though if i turn verbose mode on I can see that my ASIC's are hashing away ?

If I leave out the 2nd pool and add

--no-longpoll

Then it works fine, and i can see blocks being found on the network no problem ?

 [2014-03-17 20:06:06] Started bfgminer 3.10.0
 [2014-03-17 20:06:06] Probing for an alive pool
 [2014-03-17 20:06:07] Network difficulty changed to 4.25G (30.42Ph/s)
 [2014-03-17 20:06:07] Pool 0 http://127.0.0.1:8332 alive
 [2014-03-17 20:06:58] New block detected on network   <-- new found block here!

thanks in advance!