Pages:
Author

Topic: [ANN] Stratum mining protocol - ASIC ready - page 2. (Read 145773 times)

newbie
Activity: 37
Merit: 0
Few questions as I'm doing some heavy work with a custom stratum pool.

First off, is mining.set_extranonce being officially supported? If so, is cgminer going to be officially implementing this? I know bfgminer does currently support it.
legendary
Activity: 964
Merit: 1000
i also cannot seem to get the proxy to connect directly to my wallet so that i am able to solo mine. and i am having alot of problems with the p2pool still so i would like to try mining directly to the wallet.
legendary
Activity: 964
Merit: 1000
i am looking for some help with p2pool and the stratum server. i am having problems getting the latency to stay lower. i have a very good internet connection so i dont see why that would hurt it at all. 250 mbps down 15 up. the stratum proxy p2pool and bitcoind are all on the same computer. i7 6 core intel overclocked  watercooled and 32gb of ram. so there should also be no problem with the cpu load or ram load.
all of the ports that needed to be forwarded are. and i am still having no luck. after an hour or a few hours. the stratum proxy seems to lag like crazy to bitcoind
sr. member
Activity: 447
Merit: 250
Can someone help me I am having a hard time getting my cubes to connnect to stratum and mine

http://oi58.tinypic.com/vy2irq.jpg

This is my settings for the cube miner

I have a batch file that opens the stratum proxy using this code

cd C:\Program Files (x86)\Proxy
mining_proxy.exe -o us1.ghash.io -p 3333

and I am getting these errors  

2014-05-27 16:36:33,032 WARNING protocol protocol.dataReceived # Failed message:
 Cannot decode message 'POST / HTTP/1.1' from 192.168.2.102
2014-05-27 16:36:33,033 INFO stats stats.print_stats # 5 peers connected, state
changed 1 times
2014-05-27 16:36:33,033 INFO stats stats.print_stats # 6 peers connected, state
changed 1 times
2014-05-27 16:36:33,039 WARNING protocol protocol.dataReceived # Failed message:
 Cannot decode message 'POST / HTTP/1.1' from 192.168.2.103
2014-05-27 16:36:33,040 INFO stats stats.print_stats # 5 peers connected, state
changed 1 times
2014-05-27 16:36:33,042 INFO stats stats.print_stats # 6 peers connected, state
changed 1 times
2014-05-27 16:36:33,042 WARNING protocol protocol.dataReceived # Failed message:
 Cannot decode message 'POST / HTTP/1.1' from 192.168.2.102
Don't know if you have solved this by now, but here is my two-cents of info.

It's been a while since I messed with one of these, but I think the problem is that you need to specify a getworks port on the proxy for the cubes to connect correctly.  They are "getwork-based" miners.

Use:

mining_proxy.exe -o us1.ghash.io -p 3333 -gp 8332

Then in the cube configuration, set "Pool ports" to  8332,8332 instead of the 3333,3333 that you are currently using. Then select the "Update/Restart" tab to save and restart the cube.



Once that is tested and the cube is working, I would add a few more arguments that will help your cube work better.

Try this:

mining_proxy.exe -nm -q -rt -o us1.ghash.io -p 3333 -gp 8332


These arguments are:

-nm, --no-midstate    Don't compute midstate for getwork. This has outstanding performance boost with the blades/cubes.

-q, --quiet           Make output more quiet

-rt, --real-target    Propagate >diff1 target to getwork miners. Some miners work incorrectly with higher difficulty.
hero member
Activity: 658
Merit: 500
Respect All Fear None
Can someone help me I am having a hard time getting my cubes to connnect to stratum and mine



This is my settings for the cube miner

I have a batch file that opens the stratum proxy using this code

cd C:\Program Files (x86)\Proxy
mining_proxy.exe -o us1.ghash.io -p 3333

and I am getting these errors  

2014-05-27 16:36:33,032 WARNING protocol protocol.dataReceived # Failed message:
 Cannot decode message 'POST / HTTP/1.1' from 192.168.2.102
2014-05-27 16:36:33,033 INFO stats stats.print_stats # 5 peers connected, state
changed 1 times
2014-05-27 16:36:33,033 INFO stats stats.print_stats # 6 peers connected, state
changed 1 times
2014-05-27 16:36:33,039 WARNING protocol protocol.dataReceived # Failed message:
 Cannot decode message 'POST / HTTP/1.1' from 192.168.2.103
2014-05-27 16:36:33,040 INFO stats stats.print_stats # 5 peers connected, state
changed 1 times
2014-05-27 16:36:33,042 INFO stats stats.print_stats # 6 peers connected, state
changed 1 times
2014-05-27 16:36:33,042 WARNING protocol protocol.dataReceived # Failed message:
 Cannot decode message 'POST / HTTP/1.1' from 192.168.2.102
full member
Activity: 217
Merit: 100
Hi,

I have just released a Java (works on Windows/Linux/Mac...) stratum proxy implementation (only a stratum proxy, it does not support getwork). Since I am a scrypt miner, I have not tested it with SHA-256 but it should work fine. So, if some of you want to test it...

Here are some links:
Original announcement (with details): https://bitcointalksearch.org/topic/new-stratumgetwork-proxy-with-web-based-gui-and-pools-management-611338
Source code: https://github.com/Stratehm/stratum-proxy
Binaries: https://github.com/Stratehm/stratum-proxy/releases

Thx
sr. member
Activity: 389
Merit: 250
sr. member
Activity: 350
Merit: 250
★YoBit.Net★ 350+ Coins Exchange & Dice
My cousin is behind a firewall (sky) and cant open port 3333 due to his sky router not working correctly however he does know some ports that are open and we have tried one of these. However we are having some issues with it. Every share he submits get rejected with the below. when we tried a closed port we got nothing so the work is deffo getting through.

I can see the shares on the proxy, but just dud shares, does anyone have any idea?

Quote
2014-05-06 11:13:53,167 INFO proxy stratum_listener.submit # [120ms] Share from 'catinahat.1' REJECTED: (-2, u"Job 'b59d' not found", None)

he is using sgminer because he gets the best hashrate out of it. Is stratum proxy just too old now?
newbie
Activity: 56
Merit: 0
ckolivas, since you made cgminer, I am sure you will know to answer this question about stratum protocol; is it possible to turn stratum client into a pool, so that incoming stratum work is further divided into work for other clients. I am building a proxy that sits between pool and multiple instances of cgminer, so that the pool "thinks" it is in fact only one miner running. I know there is existing implementation that does stratum->getwork, but why should I go that heavy load path. I need to develop something light and fast, doing it in C and every cycle is important.

I think the answer maybe "yes"

 Smiley Smiley Smiley
newbie
Activity: 43
Merit: 0
I am trying to connect asicminer BE cubes by miner_proxy with p2pool by stratum.

Firstly, I am solved issue for geting job form p2pool to proxy by stratum, with patching protocol.py in stratum, by adding MAX_LENGTH = 16384000.
Now job received by proxy, but cubes can not get works by getwork.

Code:
C:\Python27\python.exe C:\stratum-mining-proxy-master\mining_proxy.py -gp 1234 -o 192.168.1.2 -p 9332
ecdsa package not installed. Signing of messages not available.
2014-04-17 11:19:33,654 INFO proxy jobs. # C extension for midstate not available. Using default implementation instead.
2014-04-17 11:19:33,661 ERROR proxy mining_proxy.main # Stratum host/port autodetection failed
Traceback (most recent call last):
  File "C:\stratum-mining-proxy-master\mining_proxy.py", line 182, in main
    new_host = (yield utils.detect_stratum(args.host, args.port))
  File "C:\Users\Ed\AppData\Roaming\Python\Python27\site-packages\twisted\internet\defer.py", line 1039, in _inlineCallbacks
    result = g.send(result)
  File "C:\stratum-mining-proxy-master\mining_libs\utils.py", line 69, in detect_stratum
    header = f.response_headers.get('x-stratum', None)[0]
TypeError: 'NoneType' object has no attribute '__getitem__'
2014-04-17 11:19:33,667 WARNING proxy mining_proxy.main # Stratum proxy version: 1.5.6
2014-04-17 11:19:33,673 WARNING proxy mining_proxy.test_update # Checking for updates...
2014-04-17 11:19:34,398 WARNING proxy mining_proxy.main # Trying to connect to Stratum pool at 192.168.1.2:9332
2014-04-17 11:19:34,401 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2014-04-17 11:19:34,403 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at 192.168.1.2:9332
2014-04-17 11:19:34,403 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2014-04-17 11:19:34,407 WARNING proxy mining_proxy.main # -----------------------------------------------------------------------
2014-04-17 11:19:34,408 WARNING proxy mining_proxy.main # PROXY IS LISTENING ON ALL IPs ON PORT 3333 (stratum) AND 1234 (getwork)
2014-04-17 11:19:34,410 WARNING proxy mining_proxy.main # -----------------------------------------------------------------------
2014-04-17 11:19:34,410 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:34,411 INFO proxy client_service.handle_event # New job 218120647496641940954239730939632275078 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:34,545 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:34,548 INFO proxy client_service.handle_event # New job 233046745934337131359805487615947343187 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:34,555 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:34,558 INFO proxy client_service.handle_event # New job 284941301167202598133416390532168241875 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:34,573 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:34,576 INFO proxy client_service.handle_event # New job 52839956628851028754347912368349498747 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:34,582 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:34,585 INFO proxy client_service.handle_event # New job 277582709765589873348201656238505047486 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:39,424 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:39,427 INFO proxy client_service.handle_event # New job 322025871892336027966607250075456363594 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:39,444 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:39,447 INFO proxy client_service.handle_event # New job 43771082499366205961820283141945869025 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:39,453 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:39,454 INFO proxy client_service.handle_event # New job 30759498972173187666825674470747965721 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:39,486 INFO proxy client_service.handle_event # Setting new difficulty: 41.8985580334
2014-04-17 11:19:39,487 INFO proxy client_service.handle_event # New job 174567020690227360933972996388366795346 for prevhash 6a692fa7, clean_jobs=True
2014-04-17 11:19:40,905 INFO proxy mining_proxy.on_shutdown # Shutting down proxy...
2014-04-17 11:19:40,907 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at 192.168.1.2:9332
2014-04-17 11:19:40,910 INFO stats stats.print_stats # 0 peers connected, state changed 1 times

If I run miner_proxy.py by default, it work normally.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I've created a new forum thread that tries to collate all relevant information in one place:

https://bitcointalksearch.org/topic/stratum-protocol-documentation-557866
legendary
Activity: 2576
Merit: 1186
Anyone up for writing a BIP draft? Slush finally had numbers assigned a while ago, but apparently he's been too busy to actually write the specs...
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Any documentation for these Stratum protocol extensions?

client.reconnect
client.add_peers
client.show_message
mining.get_hashrate
mining.get_temperature

Are there any other interesting extensions in use?

Reconnect and message are implemented, but I'm pretty sure the others aren't implemented anywhere on either pool or miner side. As for documentation, yes it's a shame we never got a full document out somewhere and the links from slush's pool are now broken amplifying the problem. That means this thread is the closest we'll come to official documentation Undecided unless someone goes through and collates it all into a nice document. That's why I pinned this thread.
legendary
Activity: 2730
Merit: 1034
Needs more jiggawatts
Any documentation for these Stratum protocol extensions?

client.reconnect
client.add_peers
client.show_message
mining.get_hashrate
mining.get_temperature

Are there any other interesting extensions in use?
sr. member
Activity: 425
Merit: 253
So... I have stratum mining proxy up and running and it looks like everything is ok... but when I throw a miner at it..

All shares are rejected - Low Difficulty

Example:

 [2014-04-03 16:02:21] Rejected 1423c153 Diff 3.25K/256 GSD 9  ((23, u'Low difficulty share'

You may notice I am using Gridseed Fork of cgminer....Maybe compatibility Issue?  Its 3.7.2....

100% of the shares are rejected.

Ideas?

Stratum Set Up:

./mining_proxy.py -o ltc.ghash.io -p 3333 -cu myname.1 -cp x -sh 127.0.0.1 -sp 3333 -oh 127.0.0.1 -gp 8334 -nm -rt -st

Mining Side:


sudo ./cgminer  -o 127.0.0.1:8334 -u myname.1 -p x --gridseed-options=baud=115200,freq=850,chips=5

Difficulty ti properly adjusted at the pool and can me mined without the proxy.

/fasbit

###EDIT - does "-rt" allow a difficulty setting?
legendary
Activity: 2576
Merit: 1186
Hi guys

I'm trying to setup a simple http request to stratum mining pool in c#. I'm getting this error: "Underlaying connection was closed."

Code:
string json = "{\"method\": \"getblocktemplate\", \"params\": [], \"id\": \"0\"}";
WebClient w = new WebClient();
w.Credentials = new NetworkCredential("user", "pass");
w.Headers.Add("Content-type", "application/stratum");
j = wc.UploadString("http://blabla.com:3333", json);

Please help
This thread is for the stratum mining protocol, but you seem to be trying to use GBT (with the wrong Content-type, and apparently connecting to a stratum host...)
GBT and stratum are not compatible.
newbie
Activity: 4
Merit: 0
Hi guys

I'm trying to setup a simple http request to stratum mining pool in c#. I'm getting this error: "Underlaying connection was closed."

Code:
string json = "{\"method\": \"getblocktemplate\", \"params\": [], \"id\": \"0\"}";
WebClient w = new WebClient();
w.Credentials = new NetworkCredential("user", "pass");
w.Headers.Add("Content-type", "application/stratum");
j = wc.UploadString("http://blabla.com:3333", json);

Please help
newbie
Activity: 17
Merit: 0
February 26, 2014, 10:51:57 AM
has anyone got anything in the scripts folder to work?  when i try and add, refresh, or update i get
Error during request: tuple index out of range
Code:
2014-02-26 09:46:45,229 ERROR protocol # [Failure instance: Traceback: : tuple index out of range
/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/protocol.py:192:dataReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/protocol.py:238:lineReceived
/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:13:_handle_event
/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:81:call
--- ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:134:maybeDeferred
/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:78:_run
/usr/local/lib/python2.7/dist-packages/stratum-0.2.13-py2.7.egg/stratum/services.py:213:inner
]

if I kill the server and start it over again...  it launches.  I guess my hope is that i can switch the mining without doing a shutdown and launch again.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
February 25, 2014, 08:25:44 PM
ckolivas, are you aware of cgminer bug (in ver 3.7.2) that causes cgminer to crash - it is related to stratum networking. When there are network issues, it can happen.
I have no interest in bug reports for old versions.

I know, I am just asking if it was reported and fixed in later versions.
Check the changelogs, I recall a few stratum patches.
hero member
Activity: 588
Merit: 520
February 25, 2014, 08:24:41 PM
ckolivas, are you aware of cgminer bug (in ver 3.7.2) that causes cgminer to crash - it is related to stratum networking. When there are network issues, it can happen.
I have no interest in bug reports for old versions.

I know, I am just asking if it was reported and fixed in later versions.
Pages:
Jump to: