nodejs-pool
nodejs-pool copied to clipboard
API : numbers of block displayed
This line in the API limits the number of displayed blocks at 25:
let limit = typeof(req.query.limit) !== 'undefined' ? Number(req.query.limit) : 25;
I'm mining on an edollar pool where the maturity_depth is at 60 this pool represents 80% of the network hashrate therefore, the api call never shows any locked blocks. It lists 25 unlocked blocks (50 unlocked blocks total)
the limit should be set in accordance to maturity_depth It should be something like maturity_depth + 1 at minimum. Or it should list everything until the first locked block.
Otherwise you have no way of getting the last locked block
You can set maturity depth to something lower in SQL.