Bitcoin Forum
April 25, 2024, 07:15:01 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 »
  Print  
Author Topic: [ANN] Stratum mining protocol - ASIC ready  (Read 145767 times)
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
October 12, 2012, 05:08:18 PM
 #201

Quote
3. Show diff per share submitted in console?

Ok, give me some time.

Check latest git version.

1714029301
Hero Member
*
Offline Offline

Posts: 1714029301

View Profile Personal Message (Offline)

Ignore
1714029301
Reply with quote  #2

1714029301
Report to moderator
The network tries to produce one block per 10 minutes. It does this by automatically adjusting how difficult it is to produce blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714029301
Hero Member
*
Offline Offline

Posts: 1714029301

View Profile Personal Message (Offline)

Ignore
1714029301
Reply with quote  #2

1714029301
Report to moderator
dlasher
Sr. Member
****
Offline Offline

Activity: 467
Merit: 250



View Profile WWW
October 12, 2012, 06:14:41 PM
 #202

Quote
3. Show diff per share submitted in console?

Check latest git version.

Thank you! Works like a charm!

RE: #2, logging, was hoping to have a log file to pull data from, # of shares per minute, average diff, stuff I can generate easily if I have a logfile, and can then graph. At a minimum, it would be nice to have in syslog so i can redirect it to a central syslog server, on a local1-7.




slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
October 12, 2012, 06:18:13 PM
 #203

Well, I thought these features are already included in miners. I'm not sure if adding all these features to the proxy is in my time capability :-(

Keninishna
Hero Member
*****
Offline Offline

Activity: 556
Merit: 500



View Profile
October 16, 2012, 02:08:11 PM
 #204

Is there a guide for setting up a stratum server? I see the github files but it looks to be just defining the protocol not a actual implementation.
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
October 16, 2012, 02:18:10 PM
 #205

Is there a guide for setting up a stratum server? I see the github files but it looks to be just defining the protocol not a actual implementation.

It is working implementation, basically you need to install dependencies (twisted and stratum packages), copy config_sample.py to config.py and run

Code:
twistd -ny launcher_demo.tac -l -

However I don't think too many people tried it yet, so ask me if you'll have any issues. Or even better, join #stratum irc.

Keninishna
Hero Member
*****
Offline Offline

Activity: 556
Merit: 500



View Profile
October 16, 2012, 04:10:05 PM
 #206

yup found the twisted file and ran that but I get an error saying cannot import module stratum.
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
October 16, 2012, 06:21:04 PM
 #207

It is working implementation, basically you need to install dependencies (twisted and stratum packages), copy config_sample.py to config.py.

run
easy_install stratum
easy_install -U twisted

dlasher
Sr. Member
****
Offline Offline

Activity: 467
Merit: 250



View Profile WWW
October 18, 2012, 08:11:33 PM
 #208


Slush:

I ran into an interesting failure state today, and the stratum proxy, I believe, played a roll in the failure. I posted over in the cgminer thread about the cgminer portion, but wanted to post here about the proxy portion.

Scenerio:
- stratum pool proxy is pointed at crashes
- clients behind proxy stay connected to proxy, but get no work
- since connection doesn't 'close' cgminer didn't demote the pool
- all GPU's idling and cold

Shouldn't the proxy, in some way, tell the clients when it's primary upstream connection dies?
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 18, 2012, 08:30:06 PM
 #209

Hopefully by now you should be able to cgminer directly to stratum pools more reliably than through the proxy.

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

Activity: 467
Merit: 250



View Profile WWW
October 18, 2012, 08:31:59 PM
 #210

Hopefully by now you should be able to cgminer directly to stratum pools more reliably than through the proxy.

2.8.4 is a dramatic improvement in stratum reliability.. /nod /thankyou

Sadly, none of my individual miners are fast enough (right now) to get over a 1-diff, but together they can get 16-diff when run behind the proxy.

P_Shep
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
October 18, 2012, 08:59:37 PM
 #211

Maybe this is a possible future feature of cgminer, being a proxy itself.
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 18, 2012, 09:26:51 PM
 #212

Maybe this is a possible future feature of cgminer, being a proxy itself.
Gimme a break  Undecided

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

Activity: 1876
Merit: 1000


View Profile
October 18, 2012, 09:52:51 PM
 #213

Maybe this is a possible future feature of cgminer, being a proxy itself.
Gimme a break  Undecided

Then cgminer can get me some coffee too Wink

1jimbitm6hAKTjKX4qurCNQubbnk2YsFw
eleuthria
Legendary
*
Offline Offline

Activity: 1750
Merit: 1007



View Profile
October 18, 2012, 10:31:38 PM
 #214

Maybe this is a possible future feature of cgminer, being a proxy itself.
Gimme a break  Undecided

Then cgminer can get me some coffee too Wink

Actually, this is a must have feature.  If cgminer is going to support BFL ASICs, which include a "coffee warmer", I think cgminer should interface with my coffee pot to brew my coffee as well.

RIP BTC Guild, April 2011 - June 2015
P_Shep
Legendary
*
Offline Offline

Activity: 1795
Merit: 1198


This is not OK.


View Profile
October 18, 2012, 11:01:42 PM
 #215

Maybe this is a possible future feature of cgminer, being a proxy itself.
Gimme a break  Undecided

Then cgminer can get me some coffee too Wink

Actually, this is a must have feature.  If cgminer is going to support BFL ASICs, which include a "coffee warmer", I think cgminer should interface with my coffee pot to brew my coffee as well.

Stands to reason...
iCEBREAKER
Legendary
*
Offline Offline

Activity: 2156
Merit: 1072


Crypto is the separation of Power and State.


View Profile WWW
October 19, 2012, 12:08:44 AM
 #216

Maybe this is a possible future feature of cgminer, being a proxy itself.
Gimme a break  Undecided

Then cgminer can get me some coffee too Wink

Actually, this is a must have feature.  If cgminer is going to support BFL ASICs, which include a "coffee warmer", I think cgminer should interface with my coffee pot to brew my coffee as well.

CGMiner must also interface with the grinder and automatically send shares to bitcoincoffee when it runs low on beans.

It should also maintain your ASIC mug warmer at the utmost tastiest temperature for your particular favorite varietal/roast.

*demands BFG send Con more hardware for development*


██████████
█████████████████
██████████████████████
█████████████████████████
████████████████████████████
████
████████████████████████
█████
███████████████████████████
█████
███████████████████████████
██████
████████████████████████████
██████
████████████████████████████
██████
████████████████████████████
██████
███████████████████████████
██████
██████████████████████████
█████
███████████████████████████
█████████████
██████████████
████████████████████████████
█████████████████████████
██████████████████████
█████████████████
██████████

Monero
"The difference between bad and well-developed digital cash will determine
whether we have a dictatorship or a real democracy." 
David Chaum 1996
"Fungibility provides privacy as a side effect."  Adam Back 2014
Buy and sell XMR near you
P2P Exchange Network
Buy XMR with fiat
Is Dash a scam?
Joshwaa
Hero Member
*****
Offline Offline

Activity: 497
Merit: 500



View Profile
October 19, 2012, 03:47:06 AM
 #217

lolz

Like what I said : 1JosHWaA2GywdZo9pmGLNJ5XSt8j7nzNiF
Don't like what I said : 1FuckU1u89U9nBKQu4rCHz16uF4RhpSTV
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
October 19, 2012, 09:16:06 AM
 #218

Hopefully by now you should be able to cgminer directly to stratum pools more reliably than through the proxy.

Can you elaborate more on this? Do you see any bug in proxy?

-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
October 19, 2012, 09:18:47 AM
 #219

Hopefully by now you should be able to cgminer directly to stratum pools more reliably than through the proxy.

Can you elaborate more on this? Do you see any bug in proxy?
Don't take it to mean there's a bug. It's simply one less potential point of failure.

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

Activity: 1386
Merit: 1097



View Profile WWW
October 19, 2012, 09:21:35 AM
 #220

I ran into an interesting failure state today, and the stratum proxy, I believe, played a roll in the failure. I posted over in the cgminer thread about the cgminer portion, but wanted to post here about the proxy portion.

Shouldn't the proxy, in some way, tell the clients when it's primary upstream connection dies?

Yes, it should. Let me ask some questions:

a) Are you using latest Windows binary?
b) If you're using Linux, are you sure you ran "setup.py install" or "setup.py develop" after last upgrade?
c) Do you see any error/traceback in the proxy during connection outage?

Proxy should propagate all connection failures to all connected miners immediately. It is implemented in method on_disconnect (https://github.com/slush0/stratum-mining-proxy/blob/master/mining_proxy.py) and I don't see any reason why it shouldn't work, except ther was another error.

Pages: « 1 2 3 4 5 6 7 8 9 10 [11] 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 »
  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!