Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.83 KB | None | 0 0
  1. File: /home/stone/stratum-mining/conf/config.py
  2. Page 1 of 4
  3. '''
  4. This is example configuration for Stratum server.
  5. Please rename it to config.py and fill correct values.
  6. This is already setup with sane values for solomining.
  7. You NEED to set the parameters in BASIC SETTINGS
  8. '''
  9. # ******************** BASIC SETTINGS ***************
  10. # These are the MUST BE SET parameters!
  11. CENTRAL_WALLET = '9XQ8MPnzuKpKoDhs4D3bJZ86wREm9tyLYb'
  12. # Local coin address where money goes
  13. COINDAEMON_TRUSTED_HOST = 'localhost'
  14. COINDAEMON_TRUSTED_PORT = 17779
  15. COINDAEMON_TRUSTED_USER = 'Credits'
  16. COINDAEMON_TRUSTED_PASSWORD = 'Miki8483'
  17. # Coin algorithm is the option used to determine the algorithm used by stratum
  18. # This currently works with POW and POS coins
  19. # The available options are:
  20. # scrypt, sha256d, scrypt-jane, skeinhash, and quark
  21. # If the option does not meet either of these criteria stratum defaults to scrypt
  22. # For Coins which support TX Messages please enter yes in the TX selection
  23. COINDAEMON_ALGO = 'scrypt'
  24. COINDAEMON_Reward = 'POW'
  25. COINDAEMON_TX = 'no'
  26. # ******************** BASIC SETTINGS ***************
  27. # Backup Coin Daemon address's (consider having at least 1 backup)
  28. # You can have up to 99
  29. #COINDAEMON_TRUSTED_HOST_1 = 'localhost'
  30. #COINDAEMON_TRUSTED_PORT_1 = 8332
  31. #COINDAEMON_TRUSTED_USER_1 = 'user'
  32. #COINDAEMON_TRUSTED_PASSWORD_1 = 'somepassword'
  33. #COINDAEMON_TRUSTED_HOST_2 = 'localhost'
  34. #COINDAEMON_TRUSTED_PORT_2 = 8332
  35. #COINDAEMON_TRUSTED_USER_2 = 'user'
  36. #COINDAEMON_TRUSTED_PASSWORD_2 = 'somepassword'
  37. # ******************** GENERAL SETTINGS ***************
  38. # Set process name of twistd, much more comfortable if you run multiple processes on one machine
  39. STRATUM_MINING_PROCESS_NAME= 'credits-stratum-mining'
  40. # Enable some verbose debug (logging requests and responses).
  41. DEBUG = False
  42. # Destination for application logs, files rotated once per day.
  43. LOGDIR = 'log/'
  44. # Main application log file.
  45. LOGFILE = None
  46. # eg. 'stratum.log'
  47. LOGLEVEL = 'DEBUG'
  48. # Logging Rotation can be enabled with the following settings
  49. # It if not enabled here, you can set up logrotate to rotate the files.
  50. # For built in log rotation set LOG_ROTATION = True and configure the variables
  51. LOG_ROTATION = True
  52. LOG_SIZE = 10485760 # Rotate every 10M
  53. LOG_RETENTION = 10 # Keep 10 Logs
  54. # How many threads use for synchronous methods (services).
  55. # 30 is enough for small installation, for real usage
  56. # it should be slightly more, say 100-300.
  57. THREAD_POOL_SIZE = 300File: /home/stone/stratum-mining/conf/config.py
  58. Page 2 of 4
  59. # ******************** TRANSPORTS *********************
  60. # Hostname or external IP to expose
  61. HOSTNAME = '208.186.162.110'
  62. # Disable the example service
  63. ENABLE_EXAMPLE_SERVICE = False
  64. # Port used for Socket transport. Use 'None' for disabling the transport.
  65. LISTEN_SOCKET_TRANSPORT = 3333
  66. # Port used for HTTP Poll transport. Use 'None' for disabling the transport
  67. LISTEN_HTTP_TRANSPORT = None
  68. # Port used for HTTPS Poll transport
  69. LISTEN_HTTPS_TRANSPORT = None
  70. # Port used for WebSocket transport, 'None' for disabling WS
  71. LISTEN_WS_TRANSPORT = None
  72. # Port used for secure WebSocket, 'None' for disabling WSS
  73. LISTEN_WSS_TRANSPORT = None
  74. # Salt used for Block Notify Password
  75. PASSWORD_SALT = 'sf98wirn9d8wj4ioudiowajd9843jdiojd9823j'
  76. # ******************** Database *********************
  77. DATABASE_DRIVER = 'mysql'
  78. # Options: none, sqlite, postgresql or mysql
  79. DATABASE_EXTEND = False
  80. # SQLite and PGSQL Only!
  81. # SQLite
  82. DB_SQLITE_FILE = 'pooldb.sqlite'
  83. # Postgresql
  84. DB_PGSQL_HOST = 'localhost'
  85. DB_PGSQL_DBNAME = 'mpos'
  86. DB_PGSQL_USER = 'mpos'
  87. DB_PGSQL_PASS = '4e9r05BO'
  88. DB_PGSQL_SCHEMA = 'public'
  89. # MySQL
  90. DB_MYSQL_HOST = 'localhost'
  91. DB_MYSQL_DBNAME = 'mpos'
  92. DB_MYSQL_USER = 'mpos'
  93. DB_MYSQL_PASS = '3h3ej8Da'
  94. DB_MYSQL_PORT = 3306
  95. # Default port for MySQL
  96. # ******************** Adv. DB Settings *********************
  97. # Don't change these unless you know what you are doing
  98. DB_LOADER_CHECKTIME = 15
  99. DB_LOADER_REC_MIN = 10
  100. DB_LOADER_REC_MAX = 50
  101. DB_LOADER_FORCE_TIME = 300
  102. DB_STATS_AVG_TIME = 300
  103. DB_USERCACHE_TIME = 600
  104. #
  105. #
  106. #
  107. #
  108. #
  109. #
  110. #
  111. How often we check to see if we should run the loader
  112. Min Records before the bulk loader fires
  113. Max Records the bulk loader will commit at a time
  114. How often the cache should be flushed into the DB regardless of size.
  115. When using the DATABASE_EXTEND option, average speed over X sec
  116. Note: this is also how often it updates
  117. How long the usercache is good for before we refresh
  118. # ******************** Pool Settings *********************
  119. # User Auth Options
  120. USERS_AUTOADD = False
  121. USERS_CHECK_PASSWORD = False
  122. # Automatically add users to database when they connect.
  123. # This basically disables User Auth for the pool.
  124. # Check the workers password? (Many pools don't)
  125. # Transaction Settings
  126. COINBASE_EXTRAS = '/stratumPool/'
  127. ALLOW_NONLOCAL_WALLET = False
  128. # Extra Descriptive String to incorporate in solved blocks
  129. # Allow valid, but NON-Local wallet's
  130. # Coin Daemon communication polling settings (In Seconds)
  131. PREVHASH_REFRESH_INTERVAL = 5
  132. # How often to check for new Blocks
  133. #
  134. If using the blocknotify script (recommended) set = to
  135. MERKLE_REFRESH_INTERVALFile: /home/stone/stratum-mining/conf/config.py
  136. MERKLE_REFRESH_INTERVAL = 60
  137. Page 3 of 4
  138. #
  139. (No reason to poll if we're getting pushed notifications)
  140. # How often check memorypool
  141. #
  142. This effectively resets the template and incorporates new
  143. transactions.
  144. #
  145. INSTANCE_ID = 31
  146. This should be "slow"
  147. # Used for extranonce and needs to be 0-31
  148. # ******************** Pool Difficulty Settings *********************
  149. VDIFF_X2_TYPE = True
  150. # Powers of 2 e.g. 2,4,8,16,32,64,128,256,512,1024
  151. VDIFF_FLOAT = False
  152. # Use float difficulty
  153. # Pool Target (Base Difficulty)
  154. POOL_TARGET = 32
  155. # Pool-wide difficulty target int >= 1
  156. # Variable Difficulty Enable
  157. VARIABLE_DIFF = True
  158. # Master variable difficulty enable
  159. # Variable diff tuning variables
  160. #VARDIFF will start at the POOL_TARGET. It can go as low as the VDIFF_MIN and as high as min(VDIFF_MAX or
  161. coindaemons difficulty)
  162. USE_COINDAEMON_DIFF = False
  163. # Set the maximum difficulty to the coindaemon difficulty.
  164. DIFF_UPDATE_FREQUENCY = 86400
  165. # Update the coindaemon difficulty once a day for the VARDIFF maximum
  166. VDIFF_MIN_TARGET = 16
  167. # Minimum target difficulty
  168. VDIFF_MAX_TARGET = 1024
  169. # Maximum target difficulty
  170. VDIFF_TARGET_TIME = 15
  171. # Target time per share (i.e. try to get 1 share per this many seconds)
  172. VDIFF_RETARGET_TIME = 120
  173. # Check to see if we should retarget this often
  174. VDIFF_VARIANCE_PERCENT = 30
  175. # Allow average time to very this % from target without retarget
  176. # Allow external setting of worker difficulty, checks pool_worker table datarow[6] position for target
  177. difficulty
  178. # if present or else defaults to pool target, over rides all other difficulty settings, no checks are made
  179. # for min or max limits this should be done by your front end software
  180. ALLOW_EXTERNAL_DIFFICULTY = False
  181. #### Advanced Option #####
  182. # For backwards compatibility, we send the scrypt hash to the solutions column in the shares table
  183. # For block confirmation, we have an option to send the block hash in
  184. # Please make sure your front end is compatible with the block hash in the solutions table.
  185. # For People using the MPOS frontend enabling this is recommended. It allows the frontend to compare the
  186. block hash to the coin daemon reducing the likelihood of missing share error's for blocks
  187. SOLUTION_BLOCK_HASH = True
  188. # If enabled, enter the block hash. If false enter the scrypt/sha hash
  189. into the shares table
  190. #Pass scrypt hash to submit block check.
  191. #Use if submit block is returning errors and marking submitted blocks invalid upstream, but the submitted
  192. blocks are being a accepted by the coin daemon into the block chain.
  193. BLOCK_CHECK_SCRYPT_HASH = False
  194. # ******************** Worker Ban Options *********************
  195. ENABLE_WORKER_BANNING = True
  196. # Enable/disable temporary worker banning
  197. WORKER_CACHE_TIME = 600
  198. # How long the worker stats cache is good before we check and refresh
  199. WORKER_BAN_TIME = 300
  200. # How long we temporarily ban worker
  201. INVALID_SHARES_PERCENT = 50
  202. # Allow average invalid shares vary this % before we ban
  203. # ******************** E-Mail Notification Settings *********************
  204. NOTIFY_EMAIL_TO = ''
  205. # Where to send Start/Found block
  206. notifications
  207. NOTIFY_EMAIL_TO_DEADMINER = ''
  208. # Where to send dead miner notifications
  209. NOTIFY_EMAIL_FROM = 'root@localhost'
  210. # Sender address
  211. NOTIFY_EMAIL_SERVER = 'localhost'
  212. # E-Mail sender
  213. NOTIFY_EMAIL_USERNAME = ''
  214. # E-Mail server SMTP logon
  215. NOTIFY_EMAIL_PASSWORD = ''
  216. NOTIFY_EMAIL_USETLS = True
  217. # ******************** Memcache Settings *********************
  218. # Memcahce is a requirement. Enter the settings belowFile: /home/stone/stratum-mining/conf/config.py
  219. MEMCACHE_HOST = "localhost"
  220. MEMCACHE_PORT = 11211
  221. MEMCACHE_TIMEOUT = 900
  222. MEMCACHE_PREFIX = "stratum_"
  223. #
  224. #
  225. #
  226. #
  227. Hostname or IP that runs memcached
  228. Port
  229. Key timeout
  230. Prefix for keys
  231. Page 4 of 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement