1 Star 0 Fork 0

zhq1/open-eth-pool-script-install

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
configuration.sh 2.58 KB
一键复制 编辑 原始数据 按行查看 历史
Hamza Anis 提交于 2018-02-01 16:56 . Typo
#!/bin/bash
git config --global http.https://gopkg.in.followRedirects true
git clone https://github.com/sammy007/open-ethereum-pool.git
echo -e "\033[32mMake can time as it will download the packages\n"
sudo chmod -R 777 .
cd open-ethereum-pool && make
# This is the config file
echo -e "{
\"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\": \"8s\"
},
{
\"name\": \"backup\",
\"url\": \"http://127.0.0.2:8545\",
\"timeout\": \"8s\"
}
],
\"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
}" > config.json
./build/bin/open-ethereum-pool config.json
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/zhq1_admin/open-eth-pool-script-install.git
git@gitee.com:zhq1_admin/open-eth-pool-script-install.git
zhq1_admin
open-eth-pool-script-install
open-eth-pool-script-install
master

搜索帮助