2 This is example configuration for Stratum server.
3 Please rename it to settings.py and fill correct values.
6 # ******************** GENERAL SETTINGS ***************
8 # Enable some verbose debug (logging requests and responses).
11 # Destination for application logs, files rotated once per day.
14 # Main application log file.
15 LOGFILE = None#'stratum.log'
17 # Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
20 # How many threads use for synchronous methods (services).
21 # 30 is enough for small installation, for real usage
22 # it should be slightly more, say 100-300.
25 ENABLE_EXAMPLE_SERVICE = True
27 # ******************** TRANSPORTS *********************
29 # Hostname or external IP to expose
30 HOSTNAME = 'localhost'
32 # Port used for Socket transport. Use 'None' for disabling the transport.
33 LISTEN_SOCKET_TRANSPORT = 3333
35 # Port used for HTTP Poll transport. Use 'None' for disabling the transport
36 LISTEN_HTTP_TRANSPORT = None
38 # Port used for HTTPS Poll transport
39 LISTEN_HTTPS_TRANSPORT = None
41 # Port used for WebSocket transport, 'None' for disabling WS
42 LISTEN_WS_TRANSPORT = None
44 # Port used for secure WebSocket, 'None' for disabling WSS
45 LISTEN_WSS_TRANSPORT = None
47 # Hostname and credentials for one trusted Bitcoin node ("Satoshi's client").
48 # Stratum uses both P2P port (which is 8333 already) and RPC port
49 BITCOIN_TRUSTED_HOST = 'localhost'
50 BITCOIN_TRUSTED_PORT = 8332
51 BITCOIN_TRUSTED_USER = 'user'
52 BITCOIN_TRUSTED_PASSWORD = 'somepassword'
54 # Use "echo -n '<yourpassword>' | sha256sum | cut -f1 -d' ' "
55 # for calculating SHA256 of your preferred password
56 ADMIN_PASSWORD_SHA256 = None
57 #ADMIN_PASSWORD_SHA256 = '9e6c0c1db1e0dfb3fa5159deb4ecd9715b3c8cd6b06bd4a3ad77e9a8c5694219' # SHA256 of the password
62 DATABASE_DRIVER = 'MySQLdb'
63 DATABASE_HOST = 'localhost'
64 DATABASE_DBNAME = 'pooldb'
65 DATABASE_USER = 'pooldb'
66 DATABASE_PASSWORD = '**empty**'
69 # Pool related settings
71 CENTRAL_WALLET = 'set_valid_addresss_in_config!'
72 PREVHASH_REFRESH_INTERVAL = 5 # in sec
73 MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
74 COINBASE_EXTRAS = '/stratum/'