Bitcoin Forum
November 25, 2017, 10:05:03 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
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 143703 times)
orddie
Newbie
*
Offline Offline

Activity: 17


View Profile
February 26, 2014, 02:51:57 PM
 #661

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: <type 'exceptions.IndexError'>: 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
--- <exception caught here> ---
/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.
1511604303
Hero Member
*
Offline Offline

Posts: 1511604303

View Profile Personal Message (Offline)

Ignore
1511604303
Reply with quote  #2

1511604303
Report to moderator
1511604303
Hero Member
*
Offline Offline

Posts: 1511604303

View Profile Personal Message (Offline)

Ignore
1511604303
Reply with quote  #2

1511604303
Report to moderator
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511604303
Hero Member
*
Offline Offline

Posts: 1511604303

View Profile Personal Message (Offline)

Ignore
1511604303
Reply with quote  #2

1511604303
Report to moderator
1511604303
Hero Member
*
Offline Offline

Posts: 1511604303

View Profile Personal Message (Offline)

Ignore
1511604303
Reply with quote  #2

1511604303
Report to moderator
cyborgminer
Newbie
*
Offline Offline

Activity: 4


View Profile WWW
March 09, 2014, 10:35:37 AM
 #662

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
Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
March 09, 2014, 05:54:06 PM
 #663

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.

fasbit
Sr. Member
****
Offline Offline

Activity: 418

./fasbit


View Profile WWW
April 03, 2014, 09:19:50 PM
 #664

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?

./fasbit
DrHaribo
Legendary
*
Offline Offline

Activity: 2240


Bitminter.com Operator


View Profile WWW
April 03, 2014, 10:02:10 PM
 #665

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?

▶▶▶ Bitminter.com - Your trusted mining pool since 2011.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
April 03, 2014, 10:30:29 PM
 #666

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.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
Luke-Jr
Legendary
*
Offline Offline

Activity: 2268



View Profile
April 03, 2014, 11:37:13 PM
 #667

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
Moderator
Legendary
*
Offline Offline

Activity: 2352


Ruu \o/


View Profile WWW
April 05, 2014, 03:01:05 AM
 #668

I've created a new forum thread that tries to collate all relevant information in one place:

https://bitcointalk.org/index.php?topic=557866.0

Primary developer/maintainer for cgminer and ckpool/ckproxy.
ZERO FEE Pooled mining at ckpool.org 1% Fee Solo mining at solo.ckpool.org
-ck
novanoob
Jr. Member
*
Offline Offline

Activity: 40


View Profile
April 17, 2014, 08:26:46 AM
 #669

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.<module> # 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.
blackvoice
Jr. Member
*
Offline Offline

Activity: 56


View Profile
April 21, 2014, 08:30:15 AM
 #670

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

Comm: CY5h6q3ckuK4F4pSxrNUK63sxaHoPWiP7T
ShareCoin: SeXNHc5ZQGdE1UYNQptgjD5gte1HNxPhVs
mrflibblehat
Sr. Member
****
Offline Offline

Activity: 350

★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
May 06, 2014, 10:32:43 AM
 #671

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?

bonesoul
Sr. Member
****
Offline Offline

Activity: 375


View Profile WWW
May 12, 2014, 11:17:48 PM
 #672


I would pay for it if it's coded in Mono C#.  Smiley


check https://github.com/CoiniumServ/CoiniumServ Smiley

Pfool
Full Member
***
Offline Offline

Activity: 217


View Profile WWW
May 20, 2014, 09:58:23 AM
 #673

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://bitcointalk.org/index.php?topic=611338.0
Source code: https://github.com/Stratehm/stratum-proxy
Binaries: https://github.com/Stratehm/stratum-proxy/releases

Thx

Thanx Wink
BTC: 19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi
robmob
Hero Member
*****
Offline Offline

Activity: 560

Respect All Fear None


View Profile WWW
May 27, 2014, 07:37:05 PM
 #674

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

Crypto Currency Communityhttp://cryptoinfinity.com

Donate BTC:15YMgV1nb97bpRqBT7CEf6ryo37gqeeRpL
AbiTxGroup
Sr. Member
****
Offline Offline

Activity: 447


View Profile
June 09, 2014, 12:33:17 AM
 #675

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

Activity: 964



View Profile
June 28, 2014, 09:02:01 PM
 #676

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
infernoman
Legendary
*
Offline Offline

Activity: 964



View Profile
July 09, 2014, 02:35:58 AM
 #677

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.
ScriptProdigy
Jr. Member
*
Offline Offline

Activity: 39


View Profile
August 30, 2014, 01:20:24 AM
 #678

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

Activity: 2268



View Profile
August 30, 2014, 01:25:13 AM
 #679

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.
cgminer doesn't support most things, just the minimum necessity for specific use cases.
Generally, you shouldn't need mining.set_extranonce, though.

ScriptProdigy
Jr. Member
*
Offline Offline

Activity: 39


View Profile
August 30, 2014, 01:44:56 AM
 #680

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.
cgminer doesn't support most things, just the minimum necessity for specific use cases.
Generally, you shouldn't need mining.set_extranonce, though.
I do, however, require support for set_extranonce. I'll do my own build of cgminer then. Just a pain to get users to use it rather than what they already have. Thanks for the reply.
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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!