Open longnight opened 6 years ago
Try to restart api module. This happens during initial pool run. Also see https://github.com/Snipa22/nodejs-pool/pull/280
I've restart api several times and errors appear as the same. I wonder may be some config value lost. @MoneroOcean
@longnight enable PPS restart worker module then wait 1 min.
or add in worker module
if (!(global.database.getCache('pool_stats_pps'))){
global.database.setCache('pool_stats_pps', {
hashRate: 0,
miners: 0,
totalHashes: 0,
lastBlockFoundTime: 0,
lastBlockFound: 0,
totalBlocksFound: 0,
totalMinersPaid: 0,
totalPayments: 0,
roundHashes: 0,
totalAltBlocksFound: 0,
altBlocksFound: {},
activePort: 0,
activePortProfit: 0,
activePortComment: "",
minBlockRewards: {}
});
}
@1rV1N-git Thank you.
What should do to enable PPS ? I've already modified some config in db pool.config
.
And, I appended above code in to worker module, /api/pool/stats/pps
no more complaint, but
/api/pool/stats/pplns
/api/pool/stats/solo
/leafApi
are still giving me 500 error
Hi, after first run
deploy.sh
, those API:keep telling:
I've check the code, it seen not get the db cache on
/api.js
line 248,which returns a
false
value. Do I miss some configs value in database pool.config or config.json something ? And, API/leafApi
also return a502 Bad Gateway
.Thanks for help.