z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
291 stars 437 forks source link

Hush NOMP Error #247

Closed panda2k closed 6 years ago

panda2k commented 6 years ago

When starting the NOMP pool I get this error 2017-12-03 08:07:34 [Payments] [hush] Error with RPC call getmininginfo {"type":"request error","message":"socket hang up"} and here is my hush.json configuration.

{
    "enabled": true,
    "coin": "hush.json",

    "address": "t1Juy7sadRjDfhARcDCNEEX2Wqx3zibbFkZ",
    "_comment_address": "a transparent address to send coinbase rewards to and to transfer to zAddress.",

    "zAddress": "zcfzv454sbidLRJi5Ut4SJSKEnsnJfRtm7Ma3H8Zs3FiDfeE1wXPJFU9XmKQw73J7xpssT7vKMQgrS8F3f8uaFnEmV7NTpd",
    "_comment_zAddress": "a private address used to send coins to tAddress.",

    "tAddress": "t1Mu1sDeW2HV5NZFXkKSDwm4eQA9i1nEboc",
    "_comment_tAddress": "transparent address used to send payments, make this a different address, otherwise payments will not send",

    "invalidAddress":"t1QSJm9JY6LJXUMNbYqUNQcz77QpEowTdtn",
    "_comment_invalidAddress": "Invalid addresses will be converted to the above",

    "walletInterval": 10,

    "rewardRecipients": {
    "t1T7mPaFcoKeJWFV2Xt1i4Rnt3BwBnWK6gC": 1.0          
},

    "tlsOptions": {
        "enabled": false,
        "serverKey":"",
        "serverCert":"",
        "ca":""
    },

    "paymentProcessing": {
        "enabled": true,
        "paymentMode": "prop",
        "_comment_paymentMode":"prop, pplnt",
        "paymentInterval": 20,
        "minimumPayment": 0.1,
        "maxBlocksPerPayment": 3,
        "daemon": {
            "host": "127.0.0.1",
            "port": 8888,
            "user": "pool",
            "password": "my secret password"
        }
    },

    "ports": {
        "3034": {
            "tls":false,
            "diff": 2.5,
            "varDiff": {
                "minDiff": 0.04,
                "maxDiff": 16,
                "targetTime": 3,
                "retargetTime": 60,
                "variancePercent": 30
            }
        }
    },

    "daemons": [
        {
            "host": "127.0.0.1",
            "port": 8888,
            "user": "pool",
            "password": "my secret password"
        }
    ],

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

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

}
jamiejacksoncumbria commented 6 years ago

Did you put in your password here?

"daemons": [ { "host": "127.0.0.1", "port": 8888, "user": "pool", "password": "my secret password"

panda2k commented 6 years ago

Yeah, just replaced it with "my secret password" for obvious reasons.

OleksandrBlack commented 6 years ago

Change the daemon port, you can not install 8888, because it is the default for HUSH

panda2k commented 6 years ago

You are supposed to put the P2P port of the coin, not bind a new port right? That is how it works for all the other coins.

OleksandrBlack commented 6 years ago

/pool_configs/hush.json ` "daemons": [ { "host": "127.0.0.1", "port": Anything except 8888 but same as in /.hush/hush.conf, "user": "hush", "password": "superpass" } ],

"p2p": {
    "enabled": true,
    "host": "127.0.0.1",
    "port": 8888,
    "disableTransactions": true
},`

/.hush/hush.conf rpcport=Anything except 8888 but same as in /pool_configs/hush.json

panda2k commented 6 years ago

Yeah that works.