I have noticed my explorer is indexed but always missing one or two blocks because they are always being mined so the warning shows at the top:
99% Blocks Indexed - We’re indexing this chain right now. Some of the counts may be inaccurate.
I am trying to find an ENV var that will make it so it only shows the warning if it is behind by more than X number of blocks…
Closest I have found is LAST_BLOCK but the block height is always changing… Can I put something like minus 2 here to say blockheight minus 2?
Or is that the wrong setting and will stop indexing all together even when new blocks are mined?