ITPub博客

区块链教程open-ethereum-pool矿池源码分析main入口

原创 区块链 作者:兄弟连区块链入门教程 时间:2018-10-11 15:10:54 0 删除 编辑

open-ethereum-pool以太坊矿池-main入口

命令行启动

./build/bin/open-ethereum-pool config.json

config.json配置文件

{
    "threads": 2,
    "coin": "eth",
    "name": "main",
    "proxy": {
        "enabled": true,
        "listen": "0.0.0.0:8888",
        "limitHeadersSize": 1024,
        "limitBodySize": 256,
        "behindReverseProxy": false,
        "blockRefreshInterval": "120ms",
        "stateUpdateInterval": "3s",
        "difficulty": 2000000000,
        "hashrateExpiration": "3h",
        "healthCheck": true,
        "maxFails": 100,
        "stratum": {
            "enabled": true,
            "listen": "0.0.0.0:8008",
            "timeout": "120s",
            "maxConn": 8192
        },
        "policy": {
            "workers": 8,
            "resetInterval": "60m",
            "refreshInterval": "1m",
            "banning": {
                "enabled": false,
                "ipset": "blacklist",
                "timeout": 1800,
                "invalidPercent": 30,
                "checkThreshold": 30,
                "malformedLimit": 5
            },
            "limits": {
                "enabled": false,
                "limit": 30,
                "grace": "5m",
                "limitJump": 10
            }
        }
    },
    "api": {
        "enabled": true,
        "purgeOnly": false,
        "purgeInterval": "10m",
        "listen": "0.0.0.0:8080",
        "statsCollectInterval": "5s",
        "hashrateWindow": "30m",
        "hashrateLargeWindow": "3h",
        "luckWindow": [64, 128, 256],
        "payments": 30,
        "blocks": 50
    },
    "upstreamCheckInterval": "5s",
    "upstream": [
        {
            "name": "main",
            "url": "http://127.0.0.1:8545",
            "timeout": "10s"
        },
        {
            "name": "backup",
            "url": "http://127.0.0.2:8545",
            "timeout": "10s"
        }
    ],
    "redis": {
        "endpoint": "127.0.0.1:6379",
        "poolSize": 10,
        "database": 0,
        "password": ""
    },
    "unlocker": {
        "enabled": false,
        "poolFee": 1.0,
        "poolFeeAddress": "",
        "donate": true,
        "depth": 120,
        "immatureDepth": 20,
        "keepTxFees": false,
        "interval": "10m",
        "daemon": "http://127.0.0.1:8545",
        "timeout": "10s"
    },
    "payouts": {
        "enabled": false,
        "requirePeers": 25,
        "interval": "120m",
        "daemon": "http://127.0.0.1:8545",
        "timeout": "10s",
        "address": "0x0",
        "gas": "21000",
        "gasPrice": "50000000000",
        "autoGas": true,
        "threshold": 500000000,
        "bgsave": false
    },
    "newrelicEnabled": false,
    "newrelicName": "MyEtherProxy",
    "newrelicKey": "SECRET_KEY",
    "newrelicVerbose": false}




来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31557831/viewspace-2216022/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-10-11

  • 博文量
    30
  • 访问量
    9791