Typo fix
[stratum-mining.git] / conf / config_sample.py
1 '''
2 This is example configuration for Stratum server.
3 Please rename it to config.py and fill correct values.
4 '''
5
6 # ******************** GENERAL SETTINGS ***************
7
8 # Enable some verbose debug (logging requests and responses).
9 DEBUG = False
10
11 # Destination for application logs, files rotated once per day.
12 LOGDIR = 'log/'
13
14 # Main application log file.
15 LOGFILE = None#'stratum.log'
16
17 # Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
18 LOGLEVEL = 'INFO'
19
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.
23 THREAD_POOL_SIZE = 10
24
25 ENABLE_EXAMPLE_SERVICE = True
26
27 # ******************** TRANSPORTS *********************
28
29 # Hostname or external IP to expose
30 HOSTNAME = 'localhost'
31
32 # Port used for Socket transport. Use 'None' for disabling the transport.
33 LISTEN_SOCKET_TRANSPORT = 3333
34
35 # Port used for HTTP Poll transport. Use 'None' for disabling the transport
36 LISTEN_HTTP_TRANSPORT = None
37
38 # Port used for HTTPS Poll transport
39 LISTEN_HTTPS_TRANSPORT = None
40
41 # Port used for WebSocket transport, 'None' for disabling WS
42 LISTEN_WS_TRANSPORT = None
43
44 # Port used for secure WebSocket, 'None' for disabling WSS
45 LISTEN_WSS_TRANSPORT = None
46
47 # Hostname and credentials for one trusted Novacoin node.
48 # Stratum uses both P2P port (which is 7777 already) and RPC port
49 NOVACOIN_TRUSTED_HOST = 'localhost'
50 NOVACOIN_TRUSTED_PORT = 8344
51 NOVACOIN_TRUSTED_USER = 'user'
52 NOVACOIN_TRUSTED_PASSWORD = 'password'
53
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
58
59 IRC_NICK = None
60
61
62 DATABASE_DRIVER = 'mysql'
63 DATABASE_EXTEND = False         # False = pushpool db layout, True = pushpool + extra columns
64 DB_MYSQL_HOST = 'localhost'
65 DB_MYSQL_DBNAME = 'pooldb'
66 DB_MYSQL_USER = 'pooldb'
67 DB_MYSQL_PASS = '**empty**'
68
69
70 # Pool related settings
71 INSTANCE_ID = 31
72 CENTRAL_WALLET = '4WpFe4iTc8zC3UHAzdQX6w9BcRuXFxvPqm' # local novacoin address where money goes
73 PREVHASH_REFRESH_INTERVAL = 5 # in sec
74 MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
75 COINBASE_EXTRAS = ''
76
77 # ******************** Pool Difficulty Settings *********************
78 #  Again, Don't change unless you know what this is for.
79
80 # Pool Target (Base Difficulty)
81 POOL_TARGET = 32                # Pool-wide difficulty target int >= 1
82
83 # Variable Difficulty Enable
84 VARIABLE_DIFF = False           # Master variable difficulty enable
85
86 # Variable diff tuning variables
87 VDIFF_TARGET = 15               # Target time per share (i.e. try to get 1 share per this many seconds)
88 VDIFF_RETARGET = 120            # Check to see if we should retarget this often
89 VDIFF_VARIANCE_PERCENT = 50     # Allow average time to very this % from target without retarget
90
91 # ******************** Adv. DB Settings *********************
92 #  Don't change these unless you know what you are doing
93
94 DB_LOADER_CHECKTIME = 15        # How often we check to see if we should run the loader
95 DB_LOADER_REC_MIN = 10          # Min Records before the bulk loader fires
96 DB_LOADER_REC_MAX = 20          # Max Records the bulk loader will commit at a time
97
98 DB_STATS_AVG_TIME = 30          # When using the DATABASE_EXTEND option, average speed over X sec
99                                 #       Note: this is also how often it updates
100 DB_USERCACHE_TIME = 600         # How long the usercache is good for before we refresh
101
102 USERS_AUTOADD = False