daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Mar 28th, 2013 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. This is example configuration for Stratum server.
  3. Please rename it to settings.py and fill correct values.
  4. '''
  5.  
  6. # ******************** GENERAL SETTINGS ***************
  7.  
  8. # Enable some verbose debug (logging requests and responses).
  9. DEBUG = 'True'
  10.  
  11. # Destination for application logs, files rotated once per day.
  12. LOGDIR = 'log/'
  13.  
  14. # Main application log file.
  15. LOGFILE = 'stratum.log'
  16.  
  17. # Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
  18. LOGLEVEL = 'DEBUG'
  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 = 300
  24.  
  25. ENABLE_EXAMPLE_SERVICE = True
  26.  
  27. # ******************** TRANSPORTS *********************
  28.  
  29. # Hostname or external IP to expose
  30. HOSTNAME = 'minelitecoin.com'
  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 Bitcoin node ("Satoshi's client").
  48. # Stratum uses both P2P port (which is 8333 already) and RPC port
  49. BITCOIN_TRUSTED_HOST = '127.0.0.1'
  50. BITCOIN_TRUSTED_PORT = 9332
  51. BITCOIN_TRUSTED_USER = 'ourusername'
  52. BITCOIN_TRUSTED_PASSWORD = 'ourpassword'
  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 = 'MySQLdb'
  63. DATABASE_HOST = 'localhost'
  64. DATABASE_DBNAME = 'ourdbname'
  65. DATABASE_USER = 'ourdbuser'
  66. DATABASE_PASSWORD = 'ourdbpassword'
  67. '''
  68.  
  69. # Pool related settings
  70. INSTANCE_ID = 31
  71. CENTRAL_WALLET = 'LSD9ToLPTTQ2LbWWQRmK3FvPHUB48FDruD'
  72. PREVHASH_REFRESH_INTERVAL = 5 # in sec
  73. MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
  74. COINBASE_EXTRAS = '/stratum/'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top