Darkcoin nomp池付款处理错误和缺少ui

时间:2014-05-17 23:32:06

标签: json node.js

我们正在设置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,但我们看到一个空白页面。 用户界面在哪里?

以下是我们的设置(用户名和密码已被省略):

〜/节点开采的门户/ 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}
}

〜/节点开采的门户/ 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}
}

〜/节点开采的门户/硬币/ 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)

有什么问题?我们非常接近..

1 个答案:

答案 0 :(得分:1)

在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"}},