nodejs-pool icon indicating copy to clipboard operation
nodejs-pool copied to clipboard

API : numbers of block displayed

Open MetallianFR68 opened this issue 7 years ago • 1 comments

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

MetallianFR68 avatar Mar 10 '18 15:03 MetallianFR68

You can set maturity depth to something lower in SQL.

camthegeek avatar Mar 10 '18 15:03 camthegeek