Skip to content

default.json

raistlinthewiz edited this page Oct 2, 2014 · 1 revision

default.json contains the common configuration for the pools. You have to first copy default-example.json as default.json. Then you can put common settings for your pools on default.json as while loading pool.json configuration files, default.json values will be merged.

Sample

{
    "daemon": {
        "host": "127.0.0.1",
        "timeout": 5
    },
    "meta": {
        "motd": "Welcome to CoiniumServ pool, enjoy your stay! - http://www.coiniumserv.com",
        "txMessage": "http://www.coiniumserv.com/"
    },
    "payments": {
        "interval": 60,
        "minimum": 0.01
    },
    "miner": {
        "validateUsername": true,
        "timeout": 300
    },
    "job": {
        "blockRefreshInterval": 1000,
        "rebroadcastTimeout": 55
    },
    "stratum": {
        "bind": "0.0.0.0",
        "diff": 16,
        "vardiff": {
            "minDiff": 8,
            "maxDiff": 512,
            "targetTime": 15,
            "retargetTime": 90,
            "variancePercent": 30
        }
    },
    "banning": {
        "duration": 600,
        "invalidPercent": 50,
        "checkThreshold": 100,
        "purgeInterval": 300
    },
    "storage": {
        "hybrid": {
            "redis": {
                "host": "127.0.0.1",
                "port": 6379,
                "password": "",
                "databaseId": 0
            },
            "mysql": {
                "host": "127.0.0.1",
                "port": 3306,
                "user": "username",
                "password": "password"
            }
        },
        "mpos": {
            "mysql": {
                "host": "127.0.0.1",
                "port": 3306,
                "user": "username",
                "password": "password"
            }
        }
    }
}