Post
Topic
Board Pools
Re: [ANN] Stratum mining protocol - ASIC ready
by
cnbtcnews
on 17/03/2013, 13:36:49 UTC
I have change the bitcoin address to the server's bitcoind address

but cgminer still don't work.

Code:
No login credentials supplied for pool 0 http://192.168.183.130:3333

here is my config.py

Code:
'''
This is example configuration for Stratum server.
Please rename it to settings.py and fill correct values.
'''

# ******************** GENERAL SETTINGS ***************

# Enable some verbose debug (logging requests and responses).
DEBUG = False

# Destination for application logs, files rotated once per day.
LOGDIR = '/root/log/'

# Main application log file.
LOGFILE = None#'stratum.log'

# Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOGLEVEL = 'INFO'

# How many threads use for synchronous methods (services).
# 30 is enough for small installation, for real usage
# it should be slightly more, say 100-300.
THREAD_POOL_SIZE = 10

ENABLE_EXAMPLE_SERVICE = True

# ******************** TRANSPORTS *********************

# Hostname or external IP to expose
HOSTNAME = 'localhost'

# Port used for Socket transport. Use 'None' for disabling the transport.
LISTEN_SOCKET_TRANSPORT = 3333

# Port used for HTTP Poll transport. Use 'None' for disabling the transport
LISTEN_HTTP_TRANSPORT = None

# Port used for HTTPS Poll transport
LISTEN_HTTPS_TRANSPORT = None

# Port used for WebSocket transport, 'None' for disabling WS
LISTEN_WS_TRANSPORT = None

# Port used for secure WebSocket, 'None' for disabling WSS
LISTEN_WSS_TRANSPORT = None

# Hostname and credentials for one trusted Bitcoin node ("Satoshi's client").
# Stratum uses both P2P port (which is 8333 already) and RPC port
BITCOIN_TRUSTED_HOST = 'localhost'
BITCOIN_TRUSTED_PORT = 8332
BITCOIN_TRUSTED_USER = 'starocean'
BITCOIN_TRUSTED_PASSWORD = '123'

# Use "echo -n '' | sha256sum | cut -f1 -d' ' "
# for calculating SHA256 of your preferred password
ADMIN_PASSWORD_SHA256 = None
#ADMIN_PASSWORD_SHA256 = '9e6c0c1db1e0dfb3fa5159deb4ecd9715b3c8cd6b06bd4a3ad77e9a8c5694219' # SHA256 of the password

IRC_NICK = None

'''
DATABASE_DRIVER = 'MySQLdb'
DATABASE_HOST = 'localhost'
DATABASE_DBNAME = 'pooldb'
DATABASE_USER = 'root'
DATABASE_PASSWORD = ''
'''

# Pool related settings
INSTANCE_ID = 31
CENTRAL_WALLET = '16AASBVvTTQYgGZuR81mA43tdKXEixcqs3'
PREVHASH_REFRESH_INTERVAL = 5 # in sec
MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
COINBASE_EXTRAS = '/stratum/'

mysql database need configure?
Code:
mysql> use pooldb
Database changed
mysql> show tables;
Empty set (0.00 sec)