Bitcoin Forum
December 15, 2024, 04:39:18 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Question: Solo Mining - Do/Can I Set-up Long Polling...?  (Read 8069 times)
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
September 21, 2012, 11:16:52 PM
 #1

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?
BitBlitz
Sr. Member
****
Offline Offline

Activity: 285
Merit: 250


Turning money into heat since 2011.


View Profile
September 22, 2012, 12:02:49 AM
 #2

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 see the value of Bitcoin, so I don't worry about the price...
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
September 22, 2012, 01:35:13 AM
 #3

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.
os2sam
Legendary
*
Offline Offline

Activity: 3586
Merit: 1098


Think for yourself


View Profile
September 23, 2012, 05:21:05 PM
 #4

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

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
-ck
Legendary
*
Offline Offline

Activity: 4312
Merit: 1649


Ruu \o/


View Profile WWW
September 23, 2012, 10:16:58 PM
 #5

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.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
jamesg
VIP
Legendary
*
Offline Offline

Activity: 1358
Merit: 1000


AKA: gigavps


View Profile
October 02, 2012, 10:53:26 PM
 #6

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?
-ck
Legendary
*
Offline Offline

Activity: 4312
Merit: 1649


Ruu \o/


View Profile WWW
October 03, 2012, 12:15:27 PM
 #7

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.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
c4n10 (OP)
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
October 04, 2012, 08:21:53 PM
 #8

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!
vmfx
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile WWW
March 18, 2014, 01:06:37 AM
 #9

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!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!