- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我们正在设置 nomp https://github.com/zone117x/node-open-mining-portal
当我们运行时
node init.js
发生这种情况:
root@drk:~/node-open-mining-portal# node init.js
2014-05-17 18:51:17 [POSIX] [Connection Limit] (Safe to ignore) POSIX module not installed and resource (connection) limit was not raised
2014-05-17 18:51:17 [Master] [CLI] CLI listening on port 7777
2014-05-17 18:51:17 [Master] [PoolSpawner] Spawned 1 pool(s) on 1 thread(s)
2014-05-17 18:51:17 [Profit] [Config] No alternative coins to switch to in current config, switching disabled.
2014-05-17 18:51:17 [Switching] [Setup] (Thread 1) Loading last proxy state from redis
2014-05-17 18:51:17 [Pool] [darkcoin] (Thread 1) Share processing setup with redis (127.0.0.1:6379)
2014-05-17 18:51:17 [Switching] [Setup] (Thread 1) Switching "switch1" listening for x11 on port 3333 into darkcoin
2014-05-17 18:51:23 [Pool] [darkcoin] (Thread 1) Stratum Pool Server Started for darkcoin [DRK] {x11}
Network Connected: Mainnet
Detected Reward Type: POW
Current Block Height: 70293
Current Connect Peers: 7
Current Block Diff: 2816.770470913
Network Difficulty: 2755.22977025
Network Hash Rate: 55.22 GH
Stratum Port(s): 3331
Pool Fee Percent: 1%
Block polling every: 1000 ms
2014-05-17 18:52:18 [Pool] [darkcoin] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
2014-05-17 18:53:13 [Pool] [darkcoin] (Thread 1) No new blocks for 55 seconds - updating transactions & rebroadcasting work
然后我们导航到我们的池@ http://ourpoolexample.com/MPOS/public但我们看到一个空白页。 用户界面在哪里?
以下是我们的设置(用户名和密码已省略):
~/node-open-mining-portal/config.json
{
"logLevel": "debug",
"logColors": true,
"cliPort": 7777,
"clustering": {"enabled":true,"forks":"auto"},
"defaultPoolConfigs":{ "blockRefreshInterval":1000,
"jobRebroadcastTimeout":55,
"connectionTimeout":600,
"emitInvalidBlockHashes":true,
"validateWorkerUsername":true,
"tcpProxyProtocol":false,
"banning":{"enabled":true,"time":600,"invalidPercent":50,"checkThreshold":500,"purgeInterval":300},
"redis":{"host":"127.0.0.1","port":6379}},
"website":{ "enabled":false,
"host":"0.0.0.0",
"port":80,
"stratumHost":"cryppit.com",
"stats":{"updateInterval":60,"historicalRetention":43200,"hashrateWindow":300},
"adminCenter":{"enabled":false,"password":"password"}},
"redis": {"host":"127.0.0.1","port":6379},
"switching":{
"switch1":{"enabled":true,"algorithm":"x11","ports":{
"3333":{"diff":32,"varDiff":{"minDiff":8,"maxDiff":512,"targetTime":15,"retargetTime":90,"variancePercent":30}}
}}
},
"profitSwitch": {"enabled":true,"updateInterval":600,"depth":0.90,"usePoloniex":true,"useCryptsy":true,"useMintpal":true}
}
~/node-open-mining-portal/pool_configs/darkcoin.json
{
"enabled": true,
"coin": "darkcoin.json",
"address": "XgZLPCQkGvvpK42jAAtgRHvs8J25xKn1XS",
"rewardRecipients": {"XgZLPCQkGvvpK42jAAtgRHvs8J25xKn1XS":1.0},
"paymentProcessing":{ "enabled":false,
"paymentInterval":20,
"minimumPayment":70,
"daemon":{"host":"127.0.0.1","port":19332,"user":"user","password":"password"}},
"ports":{ "3331":{"diff":32,"varDiff":{"minDiff":8,"maxDiff":512,"targetTime":15,"retargetTime":90,"variancePercent":30}}},
"daemons":[ {"host":"127.0.0.1","port":8332,"user":"user","password":"password"}],
"p2p": {"enabled":false,"host":"127.0.0.1","port":19333,"disableTransactions":true},
"mposMode":{ "enabled":false,
"host":"127.0.0.1",
"port":3306,
"user":"user",
"password":"password",
"database":"drk",
"checkPassword":true,
"autoCreateWorker":false}
}
~/node-open-mining-portal/coins/darkcoin.json
{
"name": "Darkcoin",
"symbol": "DRK",
"algorithm": "x11",
"mposDiffMultiplier": 256
}
~/.darkcoin/darkcoin.conf
server=1
gen=0
rpcport=8332
rpcallowip=127.0.0.1
rpcuser=user
rpcpassword=password
请注意,我们已在 pool_configs/darkcoin.json 中禁用付款处理,因为我们总是收到错误:
2014-05-17 19:21:19 [Payments] [darkcoin] Error with payment processing daemon {"type":"offline","message":"connect ECONNREFUSED"}
我假设这可能是端口冲突的问题,但官方页面上有一行代码让我对付款处理主守护进程感到困惑:
/* This daemon is used to send out payments. It MUST be for the daemon that owns the
configured 'address' that receives the block rewards, otherwise the daemon will not
be able to confirm blocks or send out payments. */
在示例中它使用端口 19332 两次(匹配),但是当我们匹配它们时,池甚至不会启动(这次 [pool] 的另一个 ECONNREFUSED)
有什么问题吗?我们非常接近..
最佳答案
在 darkcoin.json 中,守护进程的端口必须与相应守护进程数据目录 conf 文件中的 rpcport 匹配。由于8332是数据目录中darkcoin.conf中的rpc端口,因此这一行:
"daemon":{"host":"127.0.0.1","port":19332,"user":"user","password":"password"}},
应该是
"daemon":{"host":"127.0.0.1","port":8332,"user":"user","password":"password"}},
关于json - Darkcoin nomp 矿池支付处理错误且缺少 ui,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23717132/
我们正在设置 nomp https://github.com/zone117x/node-open-mining-portal 当我们运行时 node init.js 发生这种情况: root@drk
我是一名优秀的程序员,十分优秀!