Bitcoin Forum
April 25, 2024, 11:39:14 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)
OneEvil
Full Member
***
Offline Offline

Activity: 181
Merit: 102


View Profile WWW
December 06, 2013, 06:55:39 AM
 #621

How to add support quark_hash in stratum-mining?
1714045154
Hero Member
*
Offline Offline

Posts: 1714045154

View Profile Personal Message (Offline)

Ignore
1714045154
Reply with quote  #2

1714045154
Report to moderator
1714045154
Hero Member
*
Offline Offline

Posts: 1714045154

View Profile Personal Message (Offline)

Ignore
1714045154
Reply with quote  #2

1714045154
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714045154
Hero Member
*
Offline Offline

Posts: 1714045154

View Profile Personal Message (Offline)

Ignore
1714045154
Reply with quote  #2

1714045154
Report to moderator
1714045154
Hero Member
*
Offline Offline

Posts: 1714045154

View Profile Personal Message (Offline)

Ignore
1714045154
Reply with quote  #2

1714045154
Report to moderator
1714045154
Hero Member
*
Offline Offline

Posts: 1714045154

View Profile Personal Message (Offline)

Ignore
1714045154
Reply with quote  #2

1714045154
Report to moderator
Blisk
Sr. Member
****
Offline Offline

Activity: 412
Merit: 250


View Profile
December 07, 2013, 09:02:55 PM
Last edit: December 07, 2013, 09:19:17 PM by Blisk
 #622

I have also problem of updating database, I use mysql and when I check logs from stratum it all shows ok.
Code:
2013-12-07 21:57:01,755 INFO interfaces # 00009cb3ba73127a5ae5c7cb71e49aca1a152d0b75b79c996ea1d3541 (38) valid Luigi.l
2013-12-07 21:57:02,189 INFO interfaces # 0000050287f5fb24e149b7bfdd09bef599db4c321a2d9b2dc900dcab484 (51) valid Luigi.l
2013-12-07 21:57:02,229 INFO block_updater # Checking for new block.
2013-12-07 21:57:02,235 DEBUG bitcoin_rpc_manager # Check Height -- Current Pool 0 : 474485
2013-12-07 21:57:02,297 INFO interfaces # 00000859b1acd400a8052f38109f15b568cffd2e69688a6e1e70f308d37f (30) valid Luigi.l
2013-12-07 21:57:02,523 INFO interfaces # 0000067c285ee0440cbf6efd406fdf16c95f4b2bdb82db7e605d524a0508 (39) valid Luigi.l
2013-12-07 21:57:02,674 INFO interfaces # 00000f2862fa94f50d804bdb16ba71173eb768892d4ed4a1c4be5654d (16) valid Luigi.l
2013-12-07 21:57:02,776 DEBUG DBInterface # run_import_thread current size: 110
2013-12-07 21:57:02,777 DEBUG DBInterface # DB_Mysql INIT
2013-12-07 21:57:02,777 DEBUG DB_Mysql # Connecting to DB
2013-12-07 21:57:02,780 DEBUG DBInterface # DBInterface.do_import called. force: no, queue size: 110
2013-12-07 21:57:02,781 INFO DBInterface # Inserting 50 Share Records
2013-12-07 21:57:02,782 DEBUG DB_Mysql # Importing Shares
2013-12-07 21:57:02,832 INFO interfaces # 00000cd45c5bb5e1f2b4f53d93065b4319e0fbf0c64758e431490d0c23 (19) valid Luigi.l
2013-12-07 21:57:02,846 INFO DBInterface # Inserting 50 Share Records
2013-12-07 21:57:02,846 DEBUG DB_Mysql # Importing Shares
2013-12-07 21:57:02,904 INFO DBInterface # Inserting 11 Share Records
2013-12-07 21:57:02,904 DEBUG DB_Mysql # Importing Shares
2013-12-07 21:57:03,446 INFO interfaces # 00000d2de8c906e2423e99d571a87b5116d2172ce2d3796b7b35395ff (19) valid George.1
2013-12-07 21:57:03,449 INFO interfaces # 000002c06ab2d1bd8f76cb1afc9cdeb14a2a22c0413c6ab521663 (93) valid Luigi.l
2013-12-07 21:57:03,699 INFO interfaces # 00000498a064564b638806f754099b66991df4c24eb616bcdb4a105008 (55) valid George.1


but I when I look at my website MPOS pool in Finder, Round, Blocks, etc. All is empty, except dashboard where all is ok, pool is on about 8000 Khash.
all database user and password is ok
http://www.digge.eu/index.php?page=statistics&action=blocks

Gamer67
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

тσ ¢σιи σя иσт тσ ¢σιи?


View Profile
January 16, 2014, 12:55:35 AM
Last edit: January 16, 2014, 08:44:59 AM by Gamer67
 #623

I am having an issue when I try to connect to other pools. I can connect to Slushs pool fine but when I try to access another pool using a bat file to start up the stratum proxy I get this error:

Failure: stratum.custom_exceptions.TransportException: SocketTransportClientFactory connection timed out


Any idea what the problem might be ?



*Edit: I figured it out. You need to remove the 'stratum+tcp://' when adding an address that has it.

"I am not Dorian Nakamoto."
noveske
Newbie
*
Offline Offline

Activity: 12
Merit: 0


View Profile
January 27, 2014, 11:00:50 PM
 #624

Hi,

I'm testing out the latest git version of the slush0 mining_proxy in Linux, and I receive the following error when trying Scrypt:

Code:
user@host:~/stratum-mining-proxy$ ./mining_proxy.py -st -o pool-eu.hash.so -p 1337 -cu user.wk1 -cp pass
/usr/local/lib/python2.7/dist-packages/zope.interface-4.0.5-py2.7-linux-i686.egg/zope/__init__.py:3: UserWarning: Module twisted was already imported from /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-i686.egg/twisted/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/autobahn-0.7.4-py2.7.egg is being added to sys.path
  import pkg_resources
2014-01-27 22:45:08,737 INFO proxy jobs.<module> # C extension for midstate not available. Using default implementation instead.
2014-01-27 22:45:08,738 ERROR proxy mining_proxy.main # Stratum host/port autodetection failed
Traceback (most recent call last):
  File "./mining_proxy.py", line 182, in main
    new_host = (yield utils.detect_stratum(args.host, args.port))
AttributeError: 'module' object has no attribute '_parse'
2014-01-27 22:45:08,738 WARNING proxy mining_proxy.main # Stratum proxy version: 1.5.2
2014-01-27 22:45:08,739 WARNING proxy mining_proxy.test_update # Checking for updates...
2014-01-27 22:45:09,743 WARNING proxy mining_proxy.main # Trying to connect to Stratum pool at pool-eu.hash.so:1337
2014-01-27 22:45:09,922 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2014-01-27 22:45:09,922 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at pool-eu.hash.so:1337
2014-01-27 22:45:09,922 WARNING proxy mining_proxy.on_connect # Authorizing custom user noveske.test, password qwe
2014-01-27 22:45:09,922 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2014-01-27 22:45:10,559 INFO proxy client_service.handle_event # Setting new difficulty: 16
2014-01-27 22:45:10,685 INFO proxy client_service.handle_event # New job 388 for prevhash cc899b97, clean_jobs=True
2014-01-27 22:45:10,685 ERROR protocol protocol.dataReceived # Processing of message failed
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/protocol.py", line 185, in dataReceived
    self.lineReceived(line, request_counter)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/protocol.py", line 257, in lineReceived
    raise custom_exceptions.ProtocolException("Lookup for deferred object for message ID '%s' failed." % msg_id)
ProtocolException: Lookup for deferred object for message ID '1' failed.
2014-01-27 22:45:10,685 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at pool-eu.hash.so:1337
2014-01-27 22:45:10,686 INFO stats stats.print_stats # 0 peers connected, state changed 1 times
2014-01-27 22:45:12,735 INFO stats stats.print_stats # 1 peers connected, state changed 1 times
2014-01-27 22:45:12,735 INFO proxy mining_proxy.on_connect # Connected to Stratum pool at pool-eu.hash.so:1337
2014-01-27 22:45:12,735 WARNING proxy mining_proxy.on_connect # Authorizing custom user noveske.test, password qwe
2014-01-27 22:45:12,735 INFO proxy mining_proxy.on_connect # Subscribing for mining jobs
2014-01-27 22:45:13,366 INFO proxy client_service.handle_event # Setting new difficulty: 16
2014-01-27 22:45:13,512 INFO proxy client_service.handle_event # New job 35a for prevhash cc899b97, clean_jobs=True
2014-01-27 22:45:13,512 ERROR protocol protocol.dataReceived # Processing of message failed
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/protocol.py", line 185, in dataReceived
    self.lineReceived(line, request_counter)
  File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/protocol.py", line 257, in lineReceived
    raise custom_exceptions.ProtocolException("Lookup for deferred object for message ID '%s' failed." % msg_id)
ProtocolException: Lookup for deferred object for message ID '1' failed.
2014-01-27 22:45:13,512 INFO proxy mining_proxy.on_disconnect # Disconnected from Stratum pool at pool-eu.hash.so:1337
2014-01-27 22:45:13,512 INFO stats stats.print_stats # 0 peers connected, state changed 1 times
^C
2014-01-27 22:45:14,456 INFO proxy mining_proxy.on_shutdown # Shutting down proxy...
user@host:~/stratum-mining-proxy$

Any suggestions on how to fix?

Thanks
fmarcosh
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 28, 2014, 10:37:52 AM
 #625

I need help for configuring the stratum proxy and the workers in the pool.
Currently I have a KnC Saturn working at 320 GHps and 2 Antminer S1 working each @ 193GHps, with 3 separate workers in btcguild using eu-stratum.btcguild.com:3333 as stratum server for each worker. All 3 workers has 256 difficulty set in the pool settings.
I'm trying to use the Stratum mining proxy but I have some doubts on the proper settings.
I think I should use another new worker that was responsible of all the shares with a new difficulty of 512, so the stratum mining proxy should point to this new worker with the -cu USER_ALLWORKERS -cp any.
So with these settings the traficc between the proxy and the pool should be restricted to shares with 512 of difficulty and minimize traffic.
First of all, are my guess ok?
The problem is that it doesn't work as expected in a windows version of the stratum proxy with the 2 Antminers connected because all shares appears as rejected by low difficulty.
Any suggestion?
Thanks in advance.
Regards.
Gamer67
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250

тσ ¢σιи σя иσт тσ ¢σιи?


View Profile
January 28, 2014, 10:49:34 AM
 #626

Why are you using a proxy for the Ants ?  They have stratum built in.

"I am not Dorian Nakamoto."
fmarcosh
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
January 28, 2014, 11:24:20 AM
 #627

I'm trying to use a stratum proxy only for lowering traffic
Sannin
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
January 29, 2014, 01:44:15 PM
 #628

I try reconnect worker to pool, but I have problem with this:

Quote
SEND: {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.3.1"]}
RECVD: {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f80015e9", 4]}

SEND: {"id": 1, "method": "mining.subscribe", "params": ["cpuminer/2.3.1", "ae6812eb4cd7735a302a8a9dd95cf71f"]}
RECVD: {"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "f80000cf", 4]}
SEND: {"id": 2, "method": "mining.authorize", "params": ["user.1", "x"]}
RECVD: {"params": [64], "id": null, "method": "mining.set_difficulty"}
RECVD: {"params": ["1033", "e66ab39733c0713f6119df118f695f5d59b6a13fe056a88bf01f89f03e2a5e05", "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff26029f77062f503253482f0472fae85208", "0d2f7374726174756d506f6f6c2f0000000001808d643d000000001976a91480d0bb1754063fe37 14747d9ff44322500ae67a588ac00000000", ["2fd8a870b199fff48f9486942d8eb05b601ad903d5c5e80db9362d0d3d4879f5", "1119df1e3825d80027d33c6150a4db12953dc0fa1a72b2e5624ae1a2d79a5397"], "00000001", "1c128600", "52e8fa74", true], "id": null, "method": "mining.notify"}

RECVD: {"params": [4], "id": null, "method": "mining.set_difficulty"}
RECVD: {"error": null, "id": 2, "result": true}

RECVD: {"params": ["2bba", "e66ab39733c0713f6119df118f695f5d59b6a13fe056a88bf01f89f03e2a5e05", "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff26029f77062f503253482f04aefae85208", "0d2f7374726174756d506f6f6c2f0000000001808d643d000000001976a91480d0bb1754063fe37 14747d9ff44322500ae67a588ac00000000", ["2fd8a870b199fff48f9486942d8eb05b601ad903d5c5e80db9362d0d3d4879f5", "1119df1e3825d80027d33c6150a4db12953dc0fa1a72b2e5624ae1a2d79a5397"], "00000001", "1c128600", "52e8fab0", false], "id": null, "method": "mining.notify"}
SEND: {"method": "mining.submit", "params": ["user.1", "1033", "00000000", "52e8fa74", "34431200"], "id":4}}
RECVD: {"error": [-2, "Share is above target", null], "id": 4, "result": null}
B.T.Coin
Sr. Member
****
Offline Offline

Activity: 332
Merit: 250



View Profile
February 09, 2014, 05:28:44 PM
 #629

Is there a way to let the server force a new 'extranonce1' on the miner without letting it disconnect ?

A fine is a tax you pay for something you did wrong.
A tax is a fine you pay for something you did right.
gh2k
Full Member
***
Offline Offline

Activity: 126
Merit: 100


View Profile WWW
February 16, 2014, 10:11:58 PM
 #630

Is there a way to let the server force a new 'extranonce1' on the miner without letting it disconnect ?

I'd like to know this, too.
IYFTech
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500


WANTED: Active dev to fix & re-write p2pool in C


View Profile
February 17, 2014, 08:55:38 AM
 #631

Hello guys,

Are there any plans to introduce p2pool compatibility?

Cheers.

-- Smiley  Thank you for smoking  Smiley --  If you paid VAT to dogie for items you should read this thread:  https://bitcointalk.org/index.php?topic=1018906.0
DrHaribo
Legendary
*
Offline Offline

Activity: 2730
Merit: 1034


Needs more jiggawatts


View Profile WWW
February 17, 2014, 08:58:44 PM
 #632

Why are none of the questions in this thread about the stratum mining protocol, which is what the thread is about? Smiley

▶▶▶ bitminter.com 2011-2020 ▶▶▶ pool.xbtodigital.io 2023-
Thirtybird
Hero Member
*****
Offline Offline

Activity: 693
Merit: 500



View Profile
February 18, 2014, 05:57:30 AM
 #633

Why are none of the questions in this thread about the stratum mining protocol, which is what the thread is about? Smiley


Fine, I've got one Wink

If someone (me) wanted to draft a proposed extension/standard stratum message, who would be the appropriate "body" to submit an RFC-like proposal to?

YACMiner: https://github.com/Thirtybird/YACMiner  N-Factor information : https://docs.google.com/spreadsheet/ccc?key=0Aj3vcsuY-JFNdC1ITWJrSG9VeWp6QXppbVgxcm0tbGc&usp=drive_web#gid=0
BTC: 183eSsaxG9y6m2ZhrDhHueoKnZWmbm6jfC  YAC: Y4FKiwKKYGQzcqn3M3u6mJoded6ri1UWHa
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
February 18, 2014, 06:11:13 AM
 #634

If someone (me) wanted to draft a proposed extension/standard stratum message, who would be the appropriate "body" to submit an RFC-like proposal to?
This thread is as close to an RFC like body you'll get since the pool operators and mining software authors worked from it. Thus the defacto standard for stratum is developed and discussed from here. Of course if you're interested in doing something for the sake of some altcoin's benefit only, I'm not interested...

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

Activity: 693
Merit: 500



View Profile
February 18, 2014, 06:16:57 AM
 #635

If someone (me) wanted to draft a proposed extension/standard stratum message, who would be the appropriate "body" to submit an RFC-like proposal to?
This thread is as close to an RFC like body you'll get since the pool operators and mining software authors worked from it. Thus the defacto standard for stratum is developed and discussed from here. Of course if you're interested in doing something for the sake of some altcoin's benefit only, I'm not interested...

Thanks for the quick reply - it is actually somewhat alt-coin related, but not tied to any coin specifically.  Once I have my idea fleshed out, I'll post it here.

YACMiner: https://github.com/Thirtybird/YACMiner  N-Factor information : https://docs.google.com/spreadsheet/ccc?key=0Aj3vcsuY-JFNdC1ITWJrSG9VeWp6QXppbVgxcm0tbGc&usp=drive_web#gid=0
BTC: 183eSsaxG9y6m2ZhrDhHueoKnZWmbm6jfC  YAC: Y4FKiwKKYGQzcqn3M3u6mJoded6ri1UWHa
Sannin
Newbie
*
Offline Offline

Activity: 19
Merit: 0


View Profile
February 22, 2014, 10:42:44 AM
 #636

Hi,

can somebody explain me what is the session in stratum?

Quote
{"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]}

Can I ignore this parameter? What is it? Can I set this parameter?

Thanks for reply
djeZo
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 22, 2014, 04:36:55 PM
 #637

Hi,

can somebody explain me what is the session in stratum?

Quote
{"error": null, "id": 1, "result": [["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"], "00000001", 4]}

Can I ignore this parameter? What is it? Can I set this parameter?

Thanks for reply

Analyzing stratum myself and it looks like this one isn't being used anywhere. Maybe reserved for later usage?

Anyway, could someone explain to me how many hashes are solved if difficulty by stratum is set to 32.

I found this: http://bitcoin.stackexchange.com/questions/3621/how-do-mining-pools-figure-out-the-hashing-speed-of-the-connected-miners

I can count number of shares and I can determine share difficulty out of protocol. If I have recorded shares (+difficulty for each one), how would I go on and calculate total amount of hashes? And does it depend on hashing algorithm?

djeZo
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 23, 2014, 12:32:32 AM
 #638

I do find only old threads, that are not related to stratum mining, like this one: https://bitcointalk.org/index.php?topic=63273.0

All these calculations yield wrong result.

The closest one I came to was when using following formula: H = num_shares * pool_diff * 2^16 / time_in_sec

This is in case pool_diff = 32

kano
Legendary
*
Offline Offline

Activity: 4466
Merit: 1798


Linux since 1997 RedHat 4


View Profile
February 23, 2014, 01:04:45 AM
 #639

I do find only old threads, that are not related to stratum mining, like this one: https://bitcointalk.org/index.php?topic=63273.0

All these calculations yield wrong result.

The closest one I came to was when using following formula: H = num_shares * pool_diff * 2^16 / time_in_sec

This is in case pool_diff = 32
Bad guess.

A 1 diff share has an expectation of occurring, on average, once every 2^32 hashes.

So it's 2^32 not 2^16 Tongue

So if you submit S shares at difficulty D over T period of seconds, your calculated hash rate would be:

S * D * 2^32 / T

Which I have called in other threads: Your "Paid GH/s" (if you also divide by 10^9)

Edit: FYI
S * D = DiffA

Pool: https://kano.is - low 0.5% fee PPLNS 3 Days - Most reliable Solo with ONLY 0.5% fee   Bitcointalk thread: Forum
Discord support invite at https://kano.is/ Majority developer of the ckpool code - k for kano
The ONLY active original developer of cgminer. Original master git: https://github.com/kanoi/cgminer
djeZo
Hero Member
*****
Offline Offline

Activity: 588
Merit: 520


View Profile
February 23, 2014, 10:10:30 AM
 #640

I thought this would be the solution too, but I get extremely high value, 500.000.000, when in fact doing only <200kH/s. So this formula can't be correct (at least not for scrypt mining)

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!