i have been trying to run cryptonote-universal-pool but whenever a miner connects i get:
Error: Failed to parse block
at BlockTemplate.nextBlob (/home/mylin/Pools/cryptonote-xmr-pool/lib/pool.js:129:23)
at Miner.getJob (/home/mylin/Pools/cryptonote-xmr-pool/lib/pool.js:308:41)
at handleMinerMethod (/home/mylin/Pools/cryptonote-xmr-pool/lib/pool.js:510:28)
at handleMessage (/home/mylin/Pools/cryptonote-xmr-pool/lib/pool.js:645:13)
at Socket.
(/home/mylin/Pools/cryptonote-xmr-pool/lib/pool.js:699:25)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at TCP.onread (net.js:561:20)
2017-09-08 03:44:20 [master] Pool fork 1 died, spawning replacement worker...
this is the config file I'm using:
{
"coin": "masari",
"symbol": "MSR",
"coinUnits": 100000000,
"coinDifficultyTarget": 120,
"logging": {
"files": {
"level": "info",
"directory": "logs",
"flushInterval": 5
},
"console": {
"level": "info",
"colors": true
}
},
"poolServer": {
"enabled": true,
"clusterForks": "auto",
"poolAddress": "5iLW4hWEt1X6zSpLYqZiWGU7HUmcCWzYgDDSMBGpRX9hV2uaZXqVxBjPKP96hdZJeXYGS7yRVeDa9Gu9XosRRKFE6fSEzxM",
"blockRefreshInterval": 1000,
"minerTimeout": 900,
"ports": [
{
"port": 3333,
"difficulty": 1000,
"desc": "Low end hardware"
},
{
"port": 5555,
"difficulty": 2000,
"desc": "Mid range hardware"
},
{
"port": 7777,
"difficulty": 10000,
"desc": "High end hardware"
},
{
"port": 8888,
"difficulty": 10000,
"desc": "Hidden port",
"hidden": true
}
],
"varDiff": {
"minDiff": 100,
"maxDiff": 200000,
"targetTime": 100,
"retargetTime": 30,
"variancePercent": 30,
"maxJump": 100
},
"fixedDiff": {
"enabled": true,
"addressSeparator": "."
},
"shareTrust": {
"enabled": true,
"min": 10,
"stepDown": 3,
"threshold": 10,
"penalty": 30
},
"banning": {
"enabled": true,
"time": 600,
"invalidPercent": 25,
"checkThreshold": 30
}
},
"payments": {
"enabled": true,
"interval": 600,
"maxAddresses": 50,
"mixin": 3,
"transferFee": 5000000000,
"minPayment": 1000000000000,
"maxTransactionAmount": 0,
"denomination": 100000000000
},
"blockUnlocker": {
"enabled": true,
"interval": 30,
"depth": 60,
"poolFee": 0,
"devDonation": 0,
"coreDevDonation": 0,
"extraFeaturesDevDonation":0
},
"api": {
"enabled": true,
"hashrateWindow": 600,
"updateInterval": 30,
"port": 8117,
"blocks": 30,
"payments": 30,
"ssl": false,
"sslport": 8119,
"sslcert": "./certs/cert.pem",
"sslkey": "./certs/privkey.pem",
"sslca": "./certs/chain.pem",
"password": "somepass"
},
"daemon": {
"host": "127.0.0.1",
"port": 38081
},
"wallet": {
"host": "127.0.0.1",
"port": 38082
},
"redis": {
"host": "127.0.0.1",
"port": 6379
},
"monitoring": {
"daemon": {
"checkInterval": 60,
"rpcMethod": "getblockcount"
},
"wallet": {
"checkInterval": 60,
"rpcMethod": "getbalance"
}
},
"charts": {
"pool": {
"hashrate": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 1800,
"maximumPeriod": 86400
},
"workers": {
"enabled": true,
"updateInterval": 60,
"stepInterval": 1800,
"maximumPeriod": 86400
},
"difficulty": {
"enabled": true,
"updateInterval": 1800,
"stepInterval": 10800,
"maximumPeriod": 604800
},
"price": {
"enabled": true,
"updateInterval": 1800,
"stepInterval": 10800,
"maximumPeriod": 604800
},
"profit": {
"enabled": true,
"updateInterval": 1800,
"stepInterval": 10800,
"maximumPeriod": 604800
}
},
"user": {
"hashrate": {
"enabled": true,
"updateInterval": 180,
"stepInterval": 1800,
"maximumPeriod": 86400
},
"payments": {
"enabled": true
}
}
}
}