Skip to content

Instantly share code, notes, and snippets.

@svasva
Created September 5, 2013 10:43
Show Gist options
  • Save svasva/6448588 to your computer and use it in GitHub Desktop.
Save svasva/6448588 to your computer and use it in GitHub Desktop.
{
# network ports
"listen" : [
# HTTP JSON-RPC protocol, port 8337
{ "port" : 9012, "protocol" : "http-json" }
],
# database settings
"database" : {
"engine" : "mysql",
"host" : "10.0.1.10",
"name" : "",
"username" : "",
"password" : "",
"stmt.pwdb" :
"SELECT password FROM pool_worker WHERE username = ?",
# this should insert share data into database
"sharelog" : true,
"stmt.sharelog" : "INSERT INTO src_shares (rem_host, username, our_result, upstream_result, reason) VALUES (?,?,?,?,?)"
},
# cache settings
"memcached" : {
"servers" : [
{ "host" : "127.0.0.1", "port" : 11211 }
]
},
"pid" : "/tmp/pushpoold-src.pid",
# overrides local hostname detection
"forcehost" : "localhost.localdomain",
"log.requests" : "/var/log/request-src.log",
"log.shares" : "/var/log/shares-src.log",
# the server assumes longpolling (w/ SIGUSR1 called for each blk)
"longpoll.disable" : false,
# length of time to cache username/password credentials, in seconds
"auth.cred_cache.expire" : 75,
# RPC settings
"rpc.url" : "",
"rpc.user" : "",
"rpc.pass" : "",
# rewrite returned 'target' to difficulty-1?
"rpc.target.rewrite" : true,
"rpc.target.bits": 20,
# how long before work expires?
"work.expire" : 120,
# allow clients to update the ntime field of their work
"roll.ntime.disable" : false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment