Skip to content

Instantly share code, notes, and snippets.

@bogatyy
Created July 6, 2021 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogatyy/420e789b3c05e3983ceb9a3966cb305c to your computer and use it in GitHub Desktop.
Save bogatyy/420e789b3c05e3983ceb9a3966cb305c to your computer and use it in GitHub Desktop.
Example miningcore Ethereum pool config
{
"logging": {
"level": "info",
"enableConsoleLog": true,
"enableConsoleColors": true,
"logFile": "",
"logBaseDirectory": "",
"perPoolLogFile": false
},
"banning": {
"manager": "integrated",
"banOnJunkReceive": true,
"banOnInvalidShares": false
},
"notifications": {
"enabled": false,
"email": {
"host": "smtp.example.com",
"port": 587,
"user": "user",
"password": "password",
"fromAddress": "info@yourpool.org",
"fromName": "support"
},
"admin": {
"enabled": false,
"emailAddress": "user@example.com",
"notifyBlockFound": true
}
},
"persistence": {
"postgres": {
"host": "127.0.0.1",
"port": 5432,
"user": "miningcoreuser",
"password": "POSTGRESQL_PASSWORD",
"database": "miningcoredb"
}
},
"paymentProcessing": {
"enabled": true,
"interval": 600,
"shareRecoveryFile": "recovered-shares.txt"
},
"api": {
"enabled": true,
"listenAddress": "127.0.0.1",
"port": 4000,
"metricsIpWhitelist": [
"YOUR_EXTERNAL_IP"
],
"rateLimiting": {
"disabled": true
}
},
"pools": [
{
"id": "eth1",
"enabled": true,
"coin": "ethereum",
"address": "0xPOOL_ADDRESS",
"rewardRecipients": [
{
"type": "op",
"address": "0xPOOL_ADDRESS",
"percentage": 0
}
],
"enableDaemonWebsocketStreaming": false,
"blockRefreshInterval": 50,
"clientConnectionTimeout": 600,
"banning": {
"enabled": true,
"time": 600,
"invalidPercent": 50,
"checkThreshold": 50
},
"ports": {
"8008": {
"listenAddress": "YOUR_EXTERNAL_IP",
"difficulty": 3,
"varDiff": {
"minDiff": 3,
"maxDiff": null,
"targetTime": 15,
"retargetTime": 90,
"variancePercent": 30
}
}
},
"daemons": [
{
"host": "127.0.0.1",
"port": 8545,
"portWs": 8546,
"notifyWorkUrl": "http://127.0.0.1:8107"
}
],
"paymentProcessing": {
"enabled": false,
"minimumPayment": 0.01,
"minimumPaymentToPaymentId": 5,
"payoutScheme": "PPLNS",
"payoutSchemeConfig": {
"factor": 2
},
"coinbasePassword": "<your wallet password if you are running parity with wallet locked>",
"keepUncles": false,
"keepTransactionFees": false
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment