Crypto-Expert / stratum-mining

AIO Stratum mining server for various coins
Other
365 stars 348 forks source link

Request: Maxcoin keccak support #236

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

Is it possible to support the Maxcoin keccak protocol please?

Regards,

quatloos commented 10 years ago

This would be nice.

nbphuoc commented 10 years ago

+1

saymissme commented 10 years ago

+1

moszis commented 10 years ago

+1

Surgun commented 10 years ago

+1

saymissme commented 10 years ago

http://maxcoinpool.com/ this pool is runing the stratum-mining it's working and finding some block

nbphuoc commented 10 years ago

You have the source?

mrzeta commented 10 years ago

oh my god~~ i have work for maxcoin pool 3 hours .....unsuccessful

ahmedbodi commented 10 years ago

jees calm down I hope im going to get some nice donations for the commits which will come in 5 mins :P

nbphuoc commented 10 years ago

Awesome

Surgun commented 10 years ago

Do u have MAX wallet for donations? ;)

saymissme commented 10 years ago

sorry i just dont know why he can build a pool by mpos and stratum-mining?

why we cant do it?

ghost commented 10 years ago

@ahmedbodi: A 1 BTC donation is waiting for you at hashfaster ;-) I hope you get it, you've done so much on mpos and stratums already... You deserve this!

Maxcoin stratum bounty: 1 BTC ! http://hashfaster.com/maxcoin-stratum-bounty-1-btc/

ahmedbodi commented 10 years ago

https://github.com/Crypto-Expert/stratum-mining/tree/maxcoin

Enjoy, ZC is testing it out as we speak. if any of you do get it to work (I haven't tested it but maxcoinpool and rocketpool has) please comment in here. in config.py set the algo to "max" for it to work

nbphuoc commented 10 years ago

got this error: exceptions.ImportError: No module named sha3

saymissme commented 10 years ago

me too how to fix it?

mrzeta commented 10 years ago

sha3 module isn`t exist oh my god - -!

nbphuoc commented 10 years ago

THIS WILL FIX IT: cd mkdir sha3 cd sha3 git clone https://github.com/ajakubek/python-sha3.git cd python-sha3 python setup.py build python setup.py install

But still get the error: exceptions.ImportError: cannot import name sha3_256

saymissme commented 10 years ago

it's so bad i found https://github.com/Prydie/stratum-mining-maxcoin it show me the same errors

Surgun commented 10 years ago

stratum starting, but no one share is accepted.

mrzeta commented 10 years ago

just one problem

2014-02-09 00:48:14,879 ERROR template_registry # [Failure instance: Traceback: <type 'exceptions.ValueError'>: invalid address /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1155:gotResult /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1142:_inlineCallbacks /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:382:callback /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:490:_startRunCallbacks --- --- /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:577:_runCallbacks /mnt/stratum/maxnow/lib/template_registry.py:142:_update_block /mnt/stratum/maxnow/lib/block_template.py:62:fill_from_rpc /mnt/stratum/maxnow/lib/coinbasetx.py:40:init /mnt/stratum/maxnow/lib/coinbaser.py:76:get_script_pubkey /mnt/stratum/maxnow/lib/util.py:218:script_to_address ]

my cg can`t submit block data to the stratum - - somebody help me~~

saymissme commented 10 years ago

how to do?

mrzeta commented 10 years ago

set conf algo to max and git clone https://github.com/Prydie/maxcoin-hash-python.git to the externals floder~~ but cg can`t submit block - -!

saymissme commented 10 years ago

how to fix it: exceptions.ImportError: cannot import name sha3_256 thanks

expalpo commented 10 years ago

You need the SHA3 from https://github.com/bjornedstrom/python-sha3

mrzeta commented 10 years ago

sorry i dont know how to fix sha3_256

nbphuoc commented 10 years ago

@expalpo Awesome. It's working now

saymissme commented 10 years ago

@nbphuoc do you know how to fix sha3_256? thanks very much

nbphuoc commented 10 years ago

@saymissme cd mkdir sha3 cd sha3 git clone https://github.com/bjornedstrom/python-sha3 cd python-sha3 python setup.py build python setup.py install

saymissme commented 10 years ago

@nbphuoc yes i was installed the sha3 it show me the error File "/root/max/stratum-mining-maxcoin/lib/util.py", line 9, in from sha3 import sha3_256 exceptions.ImportError: cannot import name sha3_256

Failed to load application: cannot import name sha3_256

ghost commented 10 years ago

nbphuoc commented 36 minutes ago @expalpo Awesome. It's working now

Great for you! So how about sharing the info how you did it?

expalpo commented 10 years ago

If you are having the sha3_256 issue... you most likely have the wrong sha3 library. It looks like the sha3 library wasn't included as a submodule. You need to use the following sha3 project https://github.com/bjornedstrom/python-sha3 and follow @nbphuoc directions above.

saymissme commented 10 years ago

now stratum is working but the cg and minerd cant working

the status is Stratum authentication failed

how to fix it?

ahmedbodi commented 10 years ago

sorry about that guys Im not actually running this code it was what me, rocketpool, maxcoinpool and a few others put together since the initial launch day.

Surgun commented 10 years ago

use minerd with -u username.workername -p workerpass

moszis commented 10 years ago

Still the error persists is there specific folder that python-sha3 should be installed in:

: ERROR template_registry # [Failure instance: Traceback: <type 'exceptions.ValueError'>: invalid address /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1155:gotResult /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1142:_inlineCallbacks /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:382:callback /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:490:_startRunCallbacks --- --- /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:577:_runCallbacks /var/Stratum/stratum-maxcoin/lib/template_registry.py:142:_update_block /var/Stratum/stratum-maxcoin/lib/block_template.py:62:fill_from_rpc /var/Stratum/stratum-maxcoin/lib/coinbasetx.py:40:init /var/Stratum/stratum-maxcoin/lib/coinbaser.py:76:get_script_pubkey /var/Stratum/stratum-maxcoin/lib/util.py:218:script_to_address

ghost commented 10 years ago

Status? Some say it works, some don't.. Here it does NOT ;-(

If someone really got it working, then don't be an ass like the maxcoin devs and SHARE it please... Howto... A step by Step, for all those non programmers would be appreciated.

Surgun commented 10 years ago

"invalid address" is not about sha3. Its about base maxcoin wallet address.

moszis commented 10 years ago

wallet address is actually validated fine.

Surgun commented 10 years ago

"Status?" - don't work

moszis commented 10 years ago

The error below was explained(above) to be due to lack of sha3 installed, but I have installed it per the guide above.. but still continue to get the same error.

: ERROR template_registry # [Failure instance: Traceback: : invalid address /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1155:gotResult /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:1142:inlineCallbacks /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x8664.egg/twisted/internet/defer.py:382:callback /usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py:490:startRunCallbacks


/usr/local/lib/python2.7/dist-packages/Twisted-13.2.0-py2.7-linux-x8664.egg/twisted/internet/defer.py:577:runCallbacks /var/Stratum/stratum-maxcoin/lib/templateregistry.py:142:updateblock /var/Stratum/stratum-maxcoin/lib/block_template.py:62:fill_from_rpc /var/Stratum/stratum-maxcoin/lib/coinbasetx.py:40:init /var/Stratum/stratum-maxcoin/lib/coinbaser.py:76:get_script_pubkey /var/Stratum/stratum-maxcoin/lib/util.py:218:script_to_address

Surgun commented 10 years ago

set algo = 'max', start minerd, then start stratum.

peconi commented 10 years ago

I'm having the same issue:

template_registry # [Failure instance: Traceback: <type 'exceptions.ValueError'>: invalid address /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1095:gotResult /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:1082:_inlineCallbacks /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:362:callback /usr/lib/python2.7/dist-packages/twisted/internet/defer.py:458:_startRunCallbacks

ANYONE know how to fix this?

peconi commented 10 years ago

@Sergun - I have: COINDAEMON_ALGO = 'max' COINDAEMON_TX = 'no'

It still gives that error

Surgun commented 10 years ago

had error like this, but i cant remember how i fixed that ( it was something elementary

peconi commented 10 years ago

@Sergun - Can you put your config.py on paste bin or send it to my email (strip out important info) :)

moszis commented 10 years ago

I'm pretty sure its not config file.

Surgun commented 10 years ago

CENTRAL_WALLET = 'mAXCOINWALLET from minerd' # local coin address where money COINDAEMON_TRUSTED_HOST = 'localhost' COINDAEMON_TRUSTED_PORT = from miner.conf COINDAEMON_TRUSTED_USER = from miner.conf COINDAEMON_TRUSTED_PASSWORD = from miner.conf COINDAEMON_ALGO = 'max' COINDAEMON_REWARD = 'POW' COINDAEMON_TX = 'no' STRATUM_MINING_PROCESS_NAME= 'twistd-stratum' DEBUG = False HOSTNAME = 'maxcoin.tk' LISTEN_SOCKET_TRANSPORT = 3333

Surgun commented 10 years ago

Sergun != Surgun ;)

peconi commented 10 years ago

I don't even have COINDAEMON_REWARD = 'POW' in mine... Where did that come from?