UNOMP / unified-node-open-mining-portal

Development stopped and is now unsupported. The node.js version is being deprecated in October 2016.
GNU General Public License v2.0
347 stars 395 forks source link

Miners not connecting to new created pool #306

Closed salmanfarisk closed 4 years ago

salmanfarisk commented 4 years ago

I just setup the mining poll using UNOMP. I face a lot of error while setup it. After a long time all errors are gone and successfully started the node init.js. But while i try connect to the pool server using cpu miner, I will get the errors( connection refused). And I try to run netstat -nl | grep ":3" on the pool server, there is no port are listed. Have any solution for my problem .

My config.js is

`{
 "logLevel": "debug",
 "logColors": true,

"cliPort": 17117,

"clustering": {
    "enabled": true,
    "forks": "auto"
},

"defaultPoolConfigs": {
    "blockRefreshInterval": 1000,
    "jobRebroadcastTimeout": 55,
    "connectionTimeout": 600,
    "emitInvalidBlockHashes": false,
    "validateWorkerUsername": true,
    "tcpProxyProtocol": false,
    "banning": {
        "enabled": true,
        "time": 600,
        "invalidPercent": 50,
        "checkThreshold": 500,
        "purgeInterval": 300
    },
    "redis": {
        "host": "127.0.0.1",
        "port": 6379,
        "db": 0,
        "password": ""
    }
},

"website": {
    "enabled": true,
    "host": "192.168.11.17",
    "siteTitle": "Citysmartcoin Beta",
    "port": 8080,
    "stratumHost": "192.168.11.17",
    "stats": {
        "updateInterval": 60,
        "historicalRetention": 43200,
        "hashrateWindow": 300,
        "graphColors": ["#058DC7", "#50B432", "#ED561B", "#DDDF00", "#24CBE5", "#64E572",
        "#FF9655", "#FFF263", "#6AF9C4"]
    },
    "adminCenter": {
        "enabled": true,
        "password": "password"
    }
},

"redis": {
    "host": "127.0.0.1",
    "port": 6379,
    "db": 0,
    "password": ""
},

"switching": {
    "switch1": {
        "enabled": false,
        "algorithm": "sha256",
        "ports": {
            "3333": {
                "diff": 10,
                "varDiff": {
                    "minDiff": 16,
                    "maxDiff": 512,
                    "targetTime": 15,
                    "retargetTime": 90,
                    "variancePercent": 30
                }
            }
        }
    },
    "switch2": {
        "enabled": false,
        "algorithm": "scrypt",
        "ports": {
            "4444": {
                "diff": 10,
                "varDiff": {
                    "minDiff": 16,
                    "maxDiff": 512,
                    "targetTime": 15,
                    "retargetTime": 90,
                    "variancePercent": 30
                }
            }
        }
    },
    "switch3": {
        "enabled": false,
        "algorithm": "x11",
        "ports": {
            "5555": {
                "diff": 0.001,
                "varDiff": {
                    "minDiff": 0.001,
                    "maxDiff": 1, 
                    "targetTime": 15, 
                    "retargetTime": 60, 
                    "variancePercent": 30 
                }
            }
        }
    }
},

"profitSwitch": {
    "enabled": false,
    "updateInterval": 600,
    "depth": 0.90,
    "usePoloniex": true,
    "useBittrex": true
}
}`
olker0 commented 4 years ago

`{ "logLevel": "debug", "logColors": true,

"cliPort": 17117,

"clustering": { "enabled": true, "forks": "auto" },

"defaultPoolConfigs": { "blockRefreshInterval": 1000, "jobRebroadcastTimeout": 55, "connectionTimeout": 600, "emitInvalidBlockHashes": false, "validateWorkerUsername": true, "tcpProxyProtocol": false, "banning": { "enabled": true, "time": 600, "invalidPercent": 50, "checkThreshold": 500, "purgeInterval": 300 }, "redis": { "host": "127.0.0.1", "port": 6379, "db": 0, "password": "" } },

"website": { "enabled": true, "host": "0.0.0.0", "siteTitle": "Citysmartcoin Beta", "port": 80, "stratumHost": "192.168.11.17", "stats": { "updateInterval": 60, "historicalRetention": 43200, "hashrateWindow": 300, "graphColors": ["#058DC7", "#50B432", "#ED561B", "#DDDF00", "#24CBE5", "#64E572", "#FF9655", "#FFF263", "#6AF9C4"] }, "adminCenter": { "enabled": true, "password": "password" } },

"redis": { "host": "127.0.0.1", "port": 6379, "db": 0, "password": "" },

"switching": { "switch1": { "enabled": true, "algorithm": "sha256", "ports": { "3333": { "diff": 10, "varDiff": { "minDiff": 16, "maxDiff": 512, "targetTime": 15, "retargetTime": 90, "variancePercent": 30 } } } }, "switch2": { "enabled": true, "algorithm": "scrypt", "ports": { "4444": { "diff": 10, "varDiff": { "minDiff": 16, "maxDiff": 512, "targetTime": 15, "retargetTime": 90, "variancePercent": 30 } } } }, "switch3": { "enabled":true, "algorithm": "x11", "ports": { "5555": { "diff": 0.001, "varDiff": { "minDiff": 0.001, "maxDiff": 1, "targetTime": 15, "retargetTime": 60, "variancePercent": 30 } } } } },

"profitSwitch": { "enabled": false, "updateInterval": 600, "depth": 0.90, "usePoloniex": true, "useBittrex": true } }`

salmanfarisk commented 4 years ago

@Lightningcash-dev My problem is not solved. The 3 pool port of 3008,3032 and 3256 is not listen. Have any more solution for it. Also my litecoin.json is

 `{
  "enabled": true,
  "coin": "litecoin.json",

"auxes": [],
"address": "QZw4necE6fFu5BV1jZusB2AZaJiwh3AZ5n",

"rewardRecipients": {
    "n37vuNFkXfk15uFnGoVyHZ6PYQxppD3QqK": 1.5,
    "22851477d63a085dbc2398c8430af1c09e7343f6": 0.1
},

"paymentProcessing": {
    "enabled": true,
    "paymentInterval": 30,
    "minimumPayment": 0.01,
    "daemon": {
        "host": "127.0.0.1",
        "port": 19443,
        "user": "litecoinrpc",
        "password": "wdYMsDT4E61jCv8xx6zZd6PYF3iZkjD7t3NpuiGpn6X"
    }
},

"ports": {
    "3008": {
        "diff": 8
    },
    "3032": {
        "diff": 32,
        "varDiff": {
            "minDiff": 8,
            "maxDiff": 512,
            "targetTime": 15,
            "retargetTime": 90,
            "variancePercent": 30
        }
    },
    "3256": {
        "diff": 256
    }
},

"daemons": [
    {
        "host": "127.0.0.1",
        "port": 19443,
        "user": "litecoinrpc",
        "password": "wdYMsDT4E61jCv8xx6zZd6PYF3iZkjD7t3NpuiGpn6X"
    }
],

"p2p": {
    "enabled": false,
    "host": "127.0.0.1",
    "port": 19333,
    "disableTransactions": false
},

"mposMode": {
    "enabled": false,
    "host": "127.0.0.1",
    "port": 3306,
    "user": "me",
    "password": "mypass",
    "database": "ltc",
    "checkPassword": false,
    "autoCreateWorker": false
  }

 }`
salmanfarisk commented 4 years ago

on console show that

[2019-12-09 10:38:46.398] [DEBUG] [default] - Pool litecoin Thread 2 Could not start pool, error with init RPC getinfo - {"code":-32601,"message":"getinfo\n\nThis call was removed in version 0.16.0. Use the appropriate fields from:\n- getblockchaininfo: blocks, difficulty, chain\n- getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings\n- getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion\n\ncitysmartcoin-cli has the option -getinfo to collect and format these in the old format."} { code: -32601, message: 'getinfo\n\nThis call was removed in version 0.16.0. Use the appropriate fields from:\n- getblockchaininfo: blocks, difficulty, chain\n- getnetworkinfo: version, protocolversion, timeoffset, connections, proxy, relayfee, warnings\n- getwalletinfo: balance, keypoololdest, keypoolsize, paytxfee, unlocked_until, walletversion\n\ncitysmartcoin-cli has the option -getinfo to collect and format these in the old format.' }

How fix this errors..??

salmanfarisk commented 4 years ago

I refer https://github.com/zone117x/node-stratum-pool/pull/133/files and solved my problem. Thank the community for support.