realtps icon indicating copy to clipboard operation
realtps copied to clipboard

Add rolling ingestions stats

Open brson opened this issue 3 years ago • 0 comments

We still have cases where block imports fall behind the chain and never catch up. Add some stats to show us more about what is happening.

During import keep a rolling calculation of

  • imported blocks / second
  • blocks / second being generated according to the timestamps on the imported blocks
  • an estimate of time until import is complete based on number of blocks left
  • an estimate of new blocks generated on-chain since import began
  • an estimate of time to import all the new blocks since import began

Write these to disk and put them on the "log" page.

brson avatar May 24 '22 18:05 brson