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

栏目: 编程工具 · 发布时间: 6年前

内容简介:open-ethereum-pool以太坊矿池-main入口命令行启动./build/bin/open-ethereum-pool config.json

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

}


以上所述就是小编给大家介绍的《兄弟连区块链教程open-ethereum-pool矿池源码分析main入口》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

独角兽之路

独角兽之路

三节课产品社区 / 电子工业出版社 / 2016-7 / 79.00元

对2~3年以上经验的互联网人来说,最好的学习可能不是听课,而是分析各类真实的产品和运营案例。而《独角兽之路:20款快速爆发且极具潜力的互联网产品深度剖析(全彩)》正好提供了对滴滴出行、百度外卖、懂球帝、快手App等20款极具代表性的准独角兽产品的发展路径的深度分析。 通过阅读《独角兽之路:20款快速爆发且极具潜力的互联网产品深度剖析(全彩)》,你可以发现互联网产品发展的背后,或许存在着某些共......一起来看看 《独角兽之路》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

URL 编码/解码
URL 编码/解码

URL 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具